bind with boost::function

Hi
Here is my problem.
I need to specify a callback function for use with OpenCV cvcam dll. I
modified OpenCV to accept a boost::function1

On Oct 25, 2005, at 9:27 PM, Eric Pruneau wrote:
boost::function1
Myfunct; Myfunct = boost::bind(&A::Callback, this);
This boost::bind expression creates a function object that takes zero arguments. If you change it to: Myfunct = boost::bind(&A::Callback, this, _1); then things should work. Doug
participants (2)
-
Doug Gregor
-
Eric Pruneau