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
(*)(),_bi::value<const unsigned int>,_bi::value<const unsigned int> > >' to '_bi::bind_t (*)(),_bi::value<const unsigned int>,_bi::value<const unsigned int> > >'
What version do you use? I 1.45 the following compiles well:
#include <vector>
#include <algorithm>
#include