
18 Nov
2010
18 Nov
'10
7:58 p.m.
Dean Michael Berris wrote:
On Thu, Nov 18, 2010 at 9:27 PM, Petr PilaĆ <email@palmik.net> wrote:
Hi folks, I often find myself in a situation where I need a simple comparison predicate for filtering, look-up, etc. Writing such predicates can get tedious over time and adds unnecessary "bloat", especially when you use the predicate only once.
Not sure how your solution is better than using Boost.Phoenix or Boost.Lambda.
Can you explain what's the difference?
or even: bind(&ClassName::getter, _1) == compareWithMe bind IIRC, supports all of the comparison operators. Jeff