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

Remove redundant const from "constexpr const" #351

Closed albertvaka closed 5 months ago

albertvaka commented 5 months ago

According to https://en.cppreference.com/w/cpp/language/constexpr, constexpr implies const.

albertvaka commented 5 months ago

Closing since compilers complain about warning: ISO C++11 does not allow conversion from string literal to 'char *const' [-Wwritable-strings]. Probably because it's constexpr char* and not char constexpr* or something like that.