@robotPatrol wrote:
hi,
i am trying to use ofColor as a key in a multimap, but receive an "invalid operands to binary expression" error although i am not comparing values and have no need to overload an operand.
.h:
multimap<ofColor, string> colorMap; multimap<ofColor, string>::iterator colorMapIt;
.cpp:
colorMap.insert(make_pair(ofColor(random(255)), "null"));
i tried creating a class to handle the ofColor and used that class in my multimap declaration, but the error was still the same.
any ideas?
thanks in advance.
01
Posts: 1
Participants: 1