Subject: Re: [boost] Formal Review: Boost.RangeEx
From: David Abrahams (dave_at_[hidden])
Date: 2009-03-02 10:18:13
on Fri Feb 27 2009, Giovanni Piero Deretta <gpderetta-AT-gmail.com> wrote:
>> Â rng && rng2 | transformed(binary_fun())
> you mean for the two ranges variant of transform?
> Well first you can always do this:
> zip(rng, rng2) | transformed (unpack(binary_fun())
zip(rng, rng2) | transform( unzip_args(binary_fun) )
> obviating the need for a 2 range (or n-range) variant at all.
> Otherwise, may be an infix syntax would work (but it probably count as
> too much operator abuse ):
> rng1 ^transformed(binary_fun())^ rng2 ;
I'm sorry, I can't understand that one.
-- Dave Abrahams BoostPro Computing http://www.boostpro.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk