isCallableCTFE trait to test whether an expression is callable during CTFE

Kenji Hara k.hara.pg at gmail.com
Wed Jul 10 20:29:09 PDT 2013


On Thursday, 11 July 2013 at 03:10:38 UTC, timotheecour wrote:
> On Thursday, 11 July 2013 at 02:17:13 UTC, Timothee Cour wrote:
[snip]
>
> can we add this to std.traits?
> it allows (among other things) to write unittests for CTFE, etc.

Phobos has an internal helper function for testing CTFEable.
https://github.com/D-Programming-Language/phobos/blob/master/std/exception.d#L1322

Kenji Hara


More information about the Digitalmars-d mailing list