|
Boost Users : |
Subject: Re: [Boost-users] using bind with find_if
From: Dennis Jones (djones_at_[hidden])
Date: 2011-03-10 14:16:47
"Nevin Liber" <nevin_at_[hidden]> wrote in message news:AANLkTi=4J9_XT73gxNBG2-GWbU0VX3_f6uj1UzZ8Ua_f_at_mail.gmail.com...
On 10 March 2011 08:30, Dennis Jones <djones_at_[hidden]> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net