On 26 November 2012 18:40, Adam D. Ruppe <destructionator@gmail.com> wrote:
On Monday, 26 November 2012 at 16:37:08 UTC, Manu wrote:S is a D symbol name, int isn't...
Why does it fail on a basic type (int), but not a user defined type (S)?
Try using only the (T,A) version, removing the alias version.
How can I fix the template declaration to not error in that case?
You might have to pass typeof(var) to it in some cases, but if you pass it typenames it should just work.