For one class I want to store some function pointers to member functions of the same class in one map storing std::function objects. But I fail rig
map
std::function
Either you need
std::function f = &Foo::doSomething;
so that you can call it on any instance, or you need to bind a specific instance, for example this
this
std::function f = std::bind(&Foo::doSomething, this);