9 Mar
2011
9 Mar
'11
10:08 p.m.
"Igor R"
I see... You can do something like this:
std::find_if(FOverridesContainer.begin(), FOverridesContainer.end(), boost::bind(OverrideMatches(), _1, ChildItemRecNo, LinkItemRecNo));
Oh, of course! Now that I see it, it makes perfect sense. For some reason, I was thinking that I needed placeholders for all values being passed to the functor, when all I really needed was the placeholder for the element in the vector because I have the actual values for the 2nd and 3 parameters. I just have to add: typedef bool result_type; to my functor, or call boost::bind<bool>. Thanks! - Dennis