Boost logo

Boost Users :

From: Markus Werle (yg-boost-users_at_[hidden])
Date: 2003-06-27 07:59:22


Peter Dimov wrote:

>
>
> Workaround:
>
> std::string (*pf)(std::string const &) = &Foo;
>
> for_each_pair(M.begin(), M.end(), l::bind(pf, l::_2));

... which is a perfect reason for requesting the feature
I asked for :-)

Well, I use this workaround in some places, but then the code
using iterators is as readable like this one, so there is no
advantage left for using lamda :-(

Anyway thanks for the explanation.

Markus

-- 
Build your own Expression Template Library with Daixtrose!
Visit http://daixtrose.sourceforge.net/ 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net