But I can't find anything about this in TR1, the only page talking
about bind is 25 (section 3.6.3). Was this removed from TR1?
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
You must be confusing boost::bind with boost::lambda.
Moreover, what do you mean by "boost::bind function objects"? Function
objects returned by boost::bind?
See "Overloaded operators (new in Boost 1.33)"
http://www.boost.org/doc/libs/1_39_0/libs/bind/bind.html#operators
Cheers!
SG
Yes, function objects return by boost::bind have these operators, so
you can write find_if(v.begin(), v.end(), boost::bind(&MyClass::count,
_1) == 5) and I can't find anything about this in TR1.
> See "Overloaded operators (new in Boost 1.33)"http://www.boost.org/doc/libs/1_39_0/libs/bind/bind.html#operators
My bad, never saw that (for my defense I would say the documentation
isn't very well made, it's not mentioned in the more formal definition
of the properties of the return type of bind).
The operators were not part of the TR1 proposal. They were added to
boost::bind after TR1 was finalized.