All Questions
Tagged with boost-function pointer-to-member
3 questions
1
vote
1
answer
2k
views
How to use boost::bind to bind a member-function to ANY object
I'm trying to achieve something with boost::bind boost::function but can't make it work.
I see how to bind a member function of an object with some arguments to be used later as a void/void function. ...
0
votes
1
answer
88
views
How to get a class member to behave like a function pointer using Boost
I would like to have a class member function behave like a function pointer. I need this behavior to integrate my own classes into some existing code.
It seems that this may be possible using Boost::...
0
votes
3
answers
740
views
How can I access class instance(object) pointer in "boost::function"?
CClass inst;
boost::function<bool(int)> func = boost::bind(&CClass::Foo, &inst, _1);
In this situation,
I want to access inst's pointer(&inst) or address from "func" like below.
...