Help!

Adam D. Ruppe destructionator at gmail.com
Mon Nov 26 08:40:16 PST 2012


On Monday, 26 November 2012 at 16:37:08 UTC, Manu wrote:
> Why does it fail on a basic type (int), but not a user defined 
> type (S)?

S is a D symbol name, int isn't...

> How can I fix the template declaration to not error in that 
> case?

Try using only the (T,A) version, removing the alias version.

You might have to pass typeof(var) to it in some cases, but if 
you pass it typenames it should just work.


More information about the Digitalmars-d mailing list