Re:C++17 constexpr everything, or as much as the compiler can
by ben-schaaf on Thursday December 28, 2017 @02:31PM
(#16024251)
Interestingly D actually used `enum` to define compile time values (as opposed to `alias` which is used for types). If you want a compile time value you can do this:
enum aux1 = X;
BTW, you can also enforce compile time evaluation like this:
But that's two lines, I know. And, of course, it is still a hack ('enum'? What?).