Is there a simple way in C++ to convert a string to an enum (similar to Enum.Parse in C#)? A switch statement would be very long, so I was wondering i
Enum.Parse
You can use macro to minimize repeating yourself. Here is the trick: Enums, Macros, Unicode and Token-Pasting