
17 Feb
2006
17 Feb
'06
8:59 p.m.
On Feb 17, 2006, at 4:14 AM, Christian Rössel wrote:
Thanks for the hint. If I add a "const std::string getA () const {return a_;}" to the SearchForMe class then I have to change
bind (&SearchForMe::getA, _1) == "apple");
to
bind (static_cast
(&SearchForMe::getA), _1) == "apple"); or to
bind (static_cast
(&SearchForMe::getA), _1) == "apple"); and everthings works fine. However, if I do the same with the tuple-code
bind (static_cast
::*)()> (&boost::tuple ::get<0>), _1) == 15); I still get compile errors:
Get returns a reference. So try:
bind (static_cast