On Jun 19, 2010, at 8:07 PM, Masahiro Nakagawa wrote:
> 
> I use following isTuple.
> 
> template isTuple(T)
> {
>    enum isTuple = __traits(compiles, { void f(X...)(Tuple!X t) {}; f(T.init); 
> });
> }

Thanks!  I still want to look into why the simple version* doesn't work, but 
that at least solves my immediate problem.

* template isTuple(T : Tuple!(U), U...) { enum isTuple = true; }

This approach even gives an invalid line number for where the problem lies.  
I'll also have to submit a bug report for the compiler.
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to