16 Jul
2008
16 Jul
'08
11:06 p.m.
AMDG Michiel Helvensteijn wrote:
BOOST_CHECK_PREDICATE( neg(foo), (2) );
Which gives a similar (though less unresolved) error-message:
error: no matching function for call to 'neg(bool (&)(int))'
neg(&foo) might work better.
The solution is to add a cast: static_cast
Hm. That's not exactly pretty. I'd rather use boost::bind itself on the call site. I was hoping to be able to fix something in the definition of neg instead.
Does it work if you make the argument to neg bool (*f)(const std::string&)? In Christ, Steven Watanabe