glaze icon indicating copy to clipboard operation
glaze copied to clipboard

Crashing when getting enum name of non-monotonic enums

Open razaqq opened this issue 10 months ago • 1 comments

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,
};

razaqq avatar Apr 25 '25 11:04 razaqq

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.

stephenberry avatar Apr 25 '25 13:04 stephenberry