<br><br><div class="gmail_quote">On Sun, Jan 6, 2013 at 1:36 PM, David <span dir="ltr"><<a href="mailto:d@dav1d.de" target="_blank">d@dav1d.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for your answers, but:<br>
<div class="im"><br>
> Exactly. The std.traits traits are testing for exact types. If you want to<br>
> test for implicit conversion, then use the : operator. e.g.<br>
><br>
>     static assert(is(OhWhy!float : float[]));<br>
<br>
</div>"OyWhy" is a templated struct for a reason, I have no idea which type of<br>
array is "alias this'ed" is there a way I can check if it's implicitly<br>
convertable to any array type with some `is` magic I am not aware of?<br>
<br>
</blockquote></div><br><div>Like this?</div><div><br></div><div><div><div>struct MyType(Elem)</div><div>{</div><div>    Elem[] inner;</div><div>    alias inner this;</div><div>}</div><div><br></div><div>void main()</div>
<div>{</div><div>    static assert(is(MyType!float _ : T[], T));</div><div>}</div></div></div><div><br></div>