I have a struct like this:
struct A { void i(int i) {} void s(string const &s) {} };
Now when I try this:
bind
Change references by pointers
#include #include struct A { void i(int i) {} void s(const std::string *s) {} }; int main(void) { A a; std::bind1st(std::mem_fun(&A::i), &a)(0); const std::string s(""); std::bind1st(std::mem_fun(&A::s), &a)(&s); }