Boost logo

Boost Users :

Subject: Re: [Boost-users] using bind with find_if
From: Nevin Liber (nevin_at_[hidden])
Date: 2011-03-10 12:01:26


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.

-- 
 Nevin ":-)" Liber  <mailto:nevin_at_[hidden]>  (847) 691-1404


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