Error with constraints on a templated fuction

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 25 08:59:28 PDT 2014


On Mon, 25 Aug 2014 15:48:10 +0000
Jeremy DeHaan via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:

> It compiles if I remove the 'if(typeof(T) is dchar)' section. Any 
> thoughts?
"is" should be used as function. here. i.e.: `if (is(T == dchar))`
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140825/c79f7e7a/attachment.sig>


More information about the Digitalmars-d-learn mailing list