[unittest] constness

Luc Bourhis via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 20 00:31:22 PST 2015


On Monday, 19 January 2015 at 16:12:59 UTC, Luc Bourhis wrote:
> Thanks everybody for your help!

Just one point I forgot to mention: the compiler chokes on

   static assert(!__traits(compiles, xc[0] = 1.0));

with:

found '=' when expecting ')' following template argument list

But

   static assert(!__traits(compiles, (xc[0] = 1.0)));

works.



More information about the Digitalmars-d mailing list