Alias this and std.traits.isArray

David d at dav1d.de
Sun Jan 6 04:36:10 PST 2013


Thanks for your answers, but:

> Exactly. The std.traits traits are testing for exact types. If you want to 
> test for implicit conversion, then use the : operator. e.g.
> 
>     static assert(is(OhWhy!float : float[]));

"OyWhy" is a templated struct for a reason, I have no idea which type of
array is "alias this'ed" is there a way I can check if it's implicitly
convertable to any array type with some `is` magic I am not aware of?



More information about the Digitalmars-d mailing list