3 ms·
C++ has been trying to get compile time introspection and synthesis into the language for a while. There is a proposal going slowly through standardization, but
by gpderetta 4y ago
C++ has been trying to get compile time introspection and synthesis into the language for a while. There is a proposal going slowly through standardization, but it is not yet know when it will be ready (I believe it missed 2 or more release trains already).
Circle, mentioned elsewhere, is a C++ dialect with fully working compile time metaprogramming.
- rurban 4y agoC++ has only half of a fully working compile time metaprogramming. constexpr are limited, consteval, would be the full part, but is usually an error. And the error handling is even only 10% working. clang is fine, gcc is broken for years.