3 ms·
There is also this approach - https://github.com/Neargye/magic_enum https://github.com/Neargye/magic_enum the trick (relyiong __FUNCTION__ like macros/(funcs?)
by malkia 5y ago
There is also this approach - https://github.com/Neargye/magic_enum https://github.com/Neargye/magic_enum
the trick (relyiong __FUNCTION__ like macros/(funcs?)) is here - https://github.com/Neargye/magic_enum/blob/master/include/magic_enum.hpp#L327 https://github.com/Neargye/magic_enum/blob/master/include/ma...
and
https://github.com/Neargye/magic_enum/blob/master/include/magic_enum.hpp#L351 https://github.com/Neargye/magic_enum/blob/master/include/ma...