
----- Original Message ----- From: "Thorsten Ottosen" <thorsten.ottosen@dezide.com> To: <boost@lists.boost.org> Sent: Wednesday, February 25, 2009 10:11 PM Subject: Re: [boost] Formal Review: Boost.RangeEx
Vicente Botet skrev:
On Wed, Feb 25, 2009 at 5:13 PM, Giovanni Piero Deretta <gpderetta@gmail.com
wrote:
total = ( r | filter(_r, f) | map(_r, m) | accumulate(_r, zero, a) );
i.e. I don't have a strong distinction between adaptor and algorithms.
Yes, I'm sold!
I agree, the introduction of the parameter (_r) makes the library homogeneus. An adaptor is a functor with a placeholder for the input parameter.
I my examples I removed the _r from the syntax. I don't see the point in having them, if the code can work without them. Are they really needed?
Not if you don't need to use a different name to make it work. Vicente