"Nevin Liber" wrote in message news:AANLkTi=4J9_XT73gxNBG2-GWbU0VX3_f6uj1UzZ8Ua_f@mail.gmail.com...
On 10 March 2011 08:30, Dennis Jones wrote:
I am using Boost 1.33.1 with Borland C++Builder 5 (an old compiler, to be
sure).
If you can upgrade to Boost 1.36 or later, the following should work (note: untested):
bind(&TItemOverride::ChildAssyItemRecNo, _1) == ChildItemRecNo && bind(&TItemOverride::LinkItemRecNo, _1) == LinkItemRecNo
and you don't even need your OverrideMatches class.
Alternatively, that should also work using the lambda library (boost::lambda::bind instead of boost::bind), even under Boost 1.33.1.
Unfortunately, BCB5 will not work with any version of Boost newer than 1.33.1, which is why I am still using 1.33.1. BCB5 also does not support the lambda library (even the current product does not support lambda yet).
So that syntax, although appealing, is not an option. But thanks anyway!
- Dennis