Boost logo

Boost :

Subject: Re: [boost] Formal Review: Boost.RangeEx
From: vicente.botet (vicente.botet_at_[hidden])
Date: 2009-02-25 16:24:42

----- Original Message -----
From: "Thorsten Ottosen" <thorsten.ottosen_at_[hidden]>
To: <boost_at_[hidden]>
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_at_[hidden]
>>>> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at