C++ map an integer to an array of boolean
I have been trying to create a map from integer to an array of bools.
However, the following code does not seem to work.
map<int, bool[]> myMap;
bool one[] = {true, true, false};
myMap[1] = one;
I do not use array that much and there seems to be something seriously
wrong here. Can someone point it out? Thanks in advance.
No comments:
Post a Comment