I want to insert std::function as a std::map key, but the code doesnt compile, any thoughts?
int sum(int a, float b){
return a+b;
}
int main()
{
std::function<int(int, float)>f = sum;
std::map <std::function<int(int, float)>, std::string> mapa;
mapa.insert(std::make_pair(f, "sum"));
}