glaze
glaze copied to clipboard
Crashing when getting enum name of non-monotonic enums
https://github.com/stephenberry/glaze/blob/2d75be77ef502339385bf3b85ce5ddf0c93e745e/include/glaze/core/reflect.hpp#L408
this would simply crash for a non-monotonic enum like this
enum class Foo
{
Bar = 0xFF,
};
Yes, this should be renamed to get_monotonic_enum_name. But, it isn't used generally for enum handling in Glaze. Thanks for reporting this, the plan is to overhaul the enum handling in Glaze, but I'm not sure when I'll get to it.