23 Aug
2010
23 Aug
'10
6:39 p.m.
On Mon, Aug 23, 2010 at 01:28:35PM -0400, lfrfly@icqmail.com wrote:
It's worth noting that if your compiler supports C++0x lambdas (gcc 4.5+ or VS2010), then the predicate becomes std::remove_copy_if(eventNames.begin(),eventNames.end(), std::back_inserter(out), [&insertedEvents](const std::string &s){ return insertedEvents.find(s) != insertedEvents.end(); }); and there is no need for Boost involvement at all.
And of course, then you have std::bind too. -- Lars Viklund | zao@acc.umu.se