Using whatever MSVC 2010 is using I guess. I don't know toolchains. virtual enum statement definitely compiles without warning nor errors. Does not work the way one would expect it to though, heh.
The larger problem is, I have a KeyboardMapper class, where you can basically do things like
And that's it. I want people deriving from my KeyboardMapper class to be able to define their own Action enum, which contains ACTION_WALK_FORWARDS as one of its numbers in the above example. What do?
nvm, just made the enum extern outside of the class scope. Won't have more than one subclass of that per app anyway. Works.
@ how it should work: Cpp is excessively verbose so yeah I guess what makes sense for one is nonsense for another.
@ std map: Oh ancient chinese secret std glory. Eventually I'll come around to read about its standard implementations to common problems. Data structure wasn't the problem though.