
11 Jan
2006
11 Jan
'06
6:39 p.m.
David Greene wrote:
Hi again,
As can can probably guess, I'm just learning how to use the BLL.
Here's another testcase I'm having trouble with:
You are just using the wrong algorithm. It should be find_if(), not find(): [...]
std::vector<Test>::iterator find_value(const Test &value) { using boost::lambda::bind; using boost::lambda::_1;
return(std::find(seq.begin(), seq.end(), ^^^^ bind(&Test::get, _1) == value.get())); } [...]
-- Daniel Wallin