given that you're using vc2010, why not using a lambda directly ?
Code:std::for_each( v.begin(), v.end(), [this]( const std::string& s ){ bar( s ); } );
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 5 of 5
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |