$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.