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);
Me gustaría poder comparar dos funciones boost :: con la misma firma. ¿Qué debería modificar para obtener este código compilable?comparar dos impulso :: función
Ver [¿Por qué es comparable std :: función no la igualdad?] (Http://stackoverflow.com/q/3629835/20984) –