You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, enum to string is not supported by RareCpp, at least in the short term I've decided I can't do this better than existing libraries (full-support for typical enum reflection activities is a very non-trivial problem) depending on your needs I recommend one of:
magic_enum - https://github.com/Neargye/magic_enum (no boilerplate required if your enums aren't using the same values in the same enum more than once, and the values are between -128 and 128 or are only bit-flag values)
I am currently working on a side project in ORM (Object-Relational Mapping). One of my requirements is to be able to map database enum types to C++ enum types, and vice versa.
Thanks a lot for the suggestion of using the magic_enum library. I will take a look at it and see if it fits my needs.
Does this library support reflecting Enum class member to string?
For example, I have a enum class
Foo
And I want to convert to string
The text was updated successfully, but these errors were encountered: