C++ Map Question
Posted on 2013-05-10
I have a template like this...
template <class EnumType, int size>
//Whatever the other code
I have several enums to instantiate the above...
Then I want to create a Map like this...
std::map<std::string, Switch> switches;
When compiled, I am getting an error:
error: expected a type , got 'Switch'.
Why is that is not allowing me to create a Map of Switch?