
15 Jul
2010
15 Jul
'10
10:45 p.m.
Below I am using std::transform algorithm but when I try to call std::stringstream::str() function using lambda::bind I receive the following error message:
TestBoost15Jul.cpp:49: error: no matching function for call to ‘bind(<unresolved overloaded function type>, const boost::reference_wrapper<std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> > >)’ <...> bl::bind( &std::stringstream::str , boost::ref(outFmt) )() // this call to bind has some problem ) );
str() member function is overloaded, so you have to type-cast it explicitly to one of the overloads.