|
Boost Users : |
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
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