c++ std::bind rebind function
bind, c++, c++11
Solution
You can `bind` again:
auto f = std::bind(memberFunctionPointer, objectPointer, _1, _2);
auto g = std::bind(f, val1, val2);
g(); // (objectPointer->*memberFunctionPointer)(val1, val2)
Problem
If I bind a function like this, using placeholders at the time of binding ``` std::bind(memberFunctionPointer, objectPointer, _1, _2); ``` Is it then possible to "rebind" it later to replace some / all of the placeholders, but without calling the function? I want to be able to pass in some parameters and then store it, to be invoked later on. (delayed callback)