Neargye / magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
MIT License
4.88k stars 434 forks source link

example.cpp does not work unless i customize names #361

Open cyrilDamae opened 4 months ago

cyrilDamae commented 4 months ago

Unless i customize names like in example_custom_name.cpp I cannot obtains enum names, counts and values properly. magic_enum::name return empty string for example and magic_enum::enum_count return 0. As soon as i customize names it works perfectly.

I am using LLVM based on MSVC 2019 and release v0.9.5

Neargye commented 3 months ago

Hi Could you please give an example? (include enum definition)