I know how to declare int fn(double) inside of std::function (std::function). I know how to write a pointer-to-member-function (
int fn(double)
std::function
If you can use Boost then you can use Boost.Bind. It's easily accomplished like this:
Boost
boost::bind(&MyClass::MemberFunction, pInstance, _1, _2)
Hopefully it's fairly self-explanatory. _1 and _2 are placeholders for parameters you can pass through to the function.
_1
_2