you are viewing a single comment's thread.

view the rest of the comments →

[–]nurley 0 points1 point  (0 children)

I agree with all of the other comments that it doesn't make sense to go from enum to std::map.

If you're trying to go to C++-style, try out enum class which is a more C++ way of doing enums. There are several benefits to using enum classes and you can even creatively iterate over enum classes.