I'm using a map and, at the time of compilation, I get this error:
I am using g++ under Linux. My map is declared as follows:no match for ‘operator<’ in ‘__x < __y’
line 230, external location: /usr/include/c++/4.4/bits/stl_function.h
I need to combine a function (returning void) to a certain event. When this event is raised, the associated function is called.Code:map<MyEvent, void(*)()> nameMap;
Can someone help me why and what is the error message refers to?
Bookmarks