void ff(int){} void Unscribe(const boost::function<void(int)>& f) { std::map<int, boost::function<void(int)> > map; map[0] = ff; if( map[0] == f) { } } Unscribe( ff );
I would like to be able to compare two boost :: functions with the same signature. What should I change to compile this code?
Guillaume07
source share