|
Boost Users : |
From: MainBrain (yelve_at_[hidden])
Date: 2007-04-25 07:24:57
> I'm not quite sure what you're after, but does this help?
>
> ...
>
> boost::function<void()> fnc = boost::bind( &foo::bar,
> boost::ref(instance) );
>
> fnc(); // evaluate instance.bar()
>
Exactly what I was looking for.
Thank you very much!
Yelve
-- View this message in context: http://www.nabble.com/Adapter-to-object-instance-tf3632838.html#a10178867 Sent from the Boost - Users mailing list archive at Nabble.com.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net