3 ms·
Constexpr is not bad, but not macros. Macros can do things like generate new types, and add methods existing types. That's crucial for things like custom derive
by twic 8y ago
Constexpr is not bad, but not macros. Macros can do things like generate new types, and add methods existing types. That's crucial for things like custom derive. C++ will get that sort of thing from the metaclasses proposal, which slouches towards WG21 to be born:
https://www.fluentcpp.com/2017/08/04/metaclasses-cpp-summary/ https://www.fluentcpp.com/2017/08/04/metaclasses-cpp-summary...