I\'m trying to create a map, where the key is an int, and the value is an array as follows:
int
int red[3] = {1,0,0}; int green[3] = {0,1,0}; int b
Arrays are not first class constructs in C++. They are not Copy Constructible nor Assignable which are requirements for values of std::map. You can use boost::array or std::vector.
Copy Constructible
Assignable
std::map
boost::array
std::vector