$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Nat Goodspeed (ngoodspeed_at_[hidden])
Date: 2007-05-19 09:34:47
> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] 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));