Dumping an enum value when a call to static_assert() fails
We have several pieces of code at Tetrane that associate data to enumeration values, only relevant for ad-hoc evaluations. A simple example is to match a string to the different enum values, for example for representing CPU registers:
enum Registers {
EAX = 0,
EBX,
// ...
};
const std::pair<Registers, std::string> descriptions ...