"Igor R"
I just have to add:
typedef bool result_type;
to my functor, or call boost::bind<bool>.
Or just define a simple function instead of the functor (which is stateless anyway).
Thanks for the suggestion. However, this:
bool OverrideMatches(
const TItemOverride &OverrideSource,
const RecNo_t ChildItemRecNo, <-- note: these are const
const RecNo_t LinkItemRecNo )
{
return
OverrideSource.ChildAssyItemRecNo == ChildItemRecNo &&
OverrideSource.LinkItemRecNo == LinkItemRecNo;
}
const RecNo_t ChildItemRecNo = 123; <-- note: these are const too
const RecNo_t LinkItemRecNo = 456;
std::find_if(
FOverridesContainer.begin(),
FOverridesContainer.end(),
boost::bind(OverrideMatches, _1, ChildItemRecNo, LinkItemRecNo) );
results in an error:
[C++ Error] bind_cc.hpp(50, 4): E2034 Cannot convert
'_bi::bind_t