"Nevin Liber" <nevin@eviloverlord.com> wrote in message news:AANLkTi=4J9_XT73gxNBG2-GWbU0VX3_f6uj1UzZ8Ua_f@mail.gmail.com...On 10 March 2011 08:30, Dennis Jones <djones@grassvalleysoftware.com> 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.