Boost logo

Boost Users :

From: Edward Diener (eddielee_at_[hidden])
Date: 2002-07-15 07:37:59


Please consider updating the documentation so that in the Purpose section
before discussing the use of boost::bind with various types of objects, you
better explain the mechanism regarding argument passing and substitution in
general..

"Peter Dimov" <pdimov_at_[hidden]> wrote in message
news:00dd01c22be5$d0905420$1d00a8c0_at_pdimov2...
> From: "Phil Nash" <phil.nash.lists_at_[hidden]>
> > Yep, there it is... you need to tell bind the ordinal positions of each
> > argument to bind to.
> > Just rewrite the line that constructs bind something like this:
> >
> > bf = boost::bind(&MyClass::MyMember,&mcl, _1, _2, _3);
> >
> > ...and it should work.
>
> Yes. bind() requires that you supply exactly the number of arguments that
is
> required by the function (object.)
>
> http://www.boost.org/libs/bind/bind.html#err_num_args


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