Template constraint error.

Johannes Pfau nospam at example.com
Thu Oct 10 09:49:08 PDT 2013


Am Thu, 10 Oct 2013 16:46:18 +0200
schrieb "Gary Willoughby" <dev at nomad.so>:

>          class Foo(T) : Bar!(int) if (is(T == string)) // <-- 
> template constraint causes error.

This syntax was added in a more recent frontend release. You should do
this instead for older frontend versions:
-------
class Foo(T) if (is(T == string)) : Bar!(int)
-------



More information about the D.gnu mailing list