Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2008-06-02 11:18:20


Michael Bradley Jr:

> Did google a bit and one possible solution was boost::function in
> combination
> with boost::bind. But I'm not familiar to that ;(

You need to change the foobar in

typedef int (*foobar)(A*,B*);
void do_something(foobar cb);

to boost::function<int(A*,B*)> and then do_something( obj ) should work.


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