Using array as map value: Cant see the error
- by Tom
Hi all,
Im trying to create a map, where the key is an int, and the value is an array
int red[3] = {1,0,0};
int green[3] = {0,1,0};
int blue[3] = {0,0,1};
std::map<int, int[3]> colours;
colours.insert(std::pair<int,int[3]>(GLUT_LEFT_BUTTON,red)); //THIS IS LINE 24 !…