Error with constraints on a templated fuction

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 25 08:52:19 PDT 2014


Jeremy DeHaan:

> It compiles if I remove the 'if(typeof(T) is dchar)' section. 
> Any thoughts?

Try:

if (is(T == dchar))

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list