Is it at all possible to map a class and/or its subclasses, like myClass, to a string/int/whatever?
This is what I'm thinking of:
map<myClass, string> myMap = {
{subclass1, "one"},
{subclass2, "two"}
//etc etc
}
I'm having trouble compiling working sample code. Could I get some help with that?
Note: I'm using c++ 11