$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2002-08-18 09:19:18
On Sun, 18 Aug 2002, Albrecht Fritzsche wrote:
> funs.push_back(boost::bind(&Foo::bar, &foo, _1));
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Is this the right usage of the /_1/ here? This code runs (at
> least on my machine:-), but I'm quite unsure about this place
> holder. And since the online docu...
Looks good to me.
> So, I would be happy if anyone could let me know if my usage includes
> some misuse etc...
You might consider changing boost::function<void, int> to
boost::function1<void, int>, because the former syntax will be deprecated
as of 1.29.0.
Doug