Boost logo

Boost Users :

From: gast128 (gast128_at_[hidden])
Date: 2006-01-26 12:37:48


Dear all,

this new boost bind logical operators is a great enhancement for readability
of bind constructions. However I have not found out yet how to deal with e.g.
built in types:

std::vector<int> vec;
std::list<int> lst;

//copy_if does not exist in std, I know.
std::copy_if(vec.begin(), vec.end(), std::back_inserter(lst), ...);

this ... must now boost::bind(std::equal_to<int>(), _1, nNumber), which is
quite unreadable, but no such thing like boost::bind::_1 == nNumber (like
boost::lambda)?

Wkr,
me


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