
15 Jul
2002
15 Jul
'02
12:37 p.m.
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@mmltd.net> wrote in message news:00dd01c22be5$d0905420$1d00a8c0@pdimov2...
From: "Phil Nash" <phil.nash.lists@squareseven.com>
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.)