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, kalb at, bjorn.karlsson at, gregod at, wekempf at