Re: Template constraint error.

2013-10-10 Thread Johannes Pfau
Am Thu, 10 Oct 2013 16:46:18 +0200 schrieb "Gary Willoughby" : > 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)

Template constraint error.

2013-10-10 Thread Gary Willoughby
Using Debian7, gcc-4.8, gdc-4.8 from the `testing main` debian source. import std.stdio; class Bar(T) if (is(T == int)) { this() { writefln(T.stringof); } } class Foo(T) : Bar!(int)