3 ms·
There's actually an official "study group" looking at compile time refection proposals, so this is definitely something in the works. However, the proposals hav
by kevinnk 12y ago
There's actually an official "study group" looking at compile time refection proposals, so this is definitely something in the works. However, the proposals have ranged from mediocre to downright horrible so it's probably not going to be in the standard any time soon.
Some light reading
[1] (static if) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3613.pdf
[2] (call for compile-time reflection) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3814.html
[3] (enum properties queries) http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2013/n3815.html
[4] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3996.pdf