19 May
2007
19 May
'07
1:34 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Stephen Torri Sent: Friday, May 18, 2007 9:01 PM To: boost-users Subject: [Boost-users] Converting loop to using boost::lambda where containers has boost::shared_ptrs
My idea was to do:
std::for_each ( m_data.begin(), m_data.end(), output << (_1 ->* &Verification_Type_Info::to_String) ( new_indent_limit ) );
[Nat] I think the construct you want will look more like (untested): std::for_each(m_data.begin(), m_data.end(), output << boost::bind(&Verification_Type_Info::to_String, _1, new_indent_limit));