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"
From: "Phil Nash"
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.)