On Sat, 2007-05-19 at 11:56 -0400, Nat Goodspeed wrote:
[Nat] Or you could explicitly qualify _1 in my version:
...boost::bind(&Verification_Type_Info::to_String, boost::bind::_1, new_indent_limit)...
I like that boost::bind() knows about shared_ptrs.
I did the following: std::for_each ( m_data.begin(), m_data.end(), output << boost::bind ( &Verification_Type_Info::to_String, boost::bind::_1, new_indent_limit ) ); I get an error that Append_Frame.cpp: In member function 'virtual std::string libreverse::java_module::Append_Frame::to_String(uint32_t) const': Append_Frame.cpp:50: error: 'boost::bind' is not a class or namespace Are you sure that the second argument is boost::bind::_1? I found that _1 is declared in boost/bind/placeholders.hpp as: boost::arg<1> _1; Stephen