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.98k stars 444 forks source link

Is magic_enum supported on nvc++? #371

Open Jasonguo9019 opened 3 months ago

Jasonguo9019 commented 3 months ago

I successfully compiled and ran a program that uses magic_enum using nvc++ 24.5, but enum_count returns 128 (MAGIC_ENUM_RANGE_MAX) regardless of the actual number of elements. Also, enum_name just gives the index of each enum variable, instead of the name.

MyByte0 commented 3 months ago

Mark. I need nvcc/nvc++ compiler support too.