Best way of checking for a templated function instantiation

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 10 06:40:30 PDT 2016


On Wednesday, 10 August 2016 at 13:37:47 UTC, Meta wrote:
> static assert(__traits(compiles, auto _ = 
> S.init.opBinary!"+"(int.init));

Made a typo, this should be:

static assert(__traits(compiles, { auto _ = 
S.init.opBinary!"+"(int.init); }));


More information about the Digitalmars-d-learn mailing list