I was just curious if there was a way to pass an array as a value into a map without using a pointer. I am trying to do something like:
Here the key would be a string and the value would be an array. I was curious if I could do this without using pointers. When I compile this I get an errorCode:map <string,array> nameMap;
Line 17 here being the line I posted above.Code:17 `array' was not declared in this scope 17 template argument 2 is invalid 17 template argument 4 is invalid 17 ISO C++ forbids declaration of `nameMap' with no type
This is just for my curiosity, let me know if anyone has any solutions.