Boost logo

Boost :

Subject: Re: [boost] [range][algorithms] How about making the range algorithms pipeable as the range adaptors are?
From: Viktor Sehr (viktor.sehr_at_[hidden])
Date: 2013-09-20 06:52:51

>> "I think a new syntax should be used to minimize confusion between the
two concepts"
> IMHO the pipe syntax should just be a shorthand for (left associative) function
application, i.e.:
> x | f
> should simply be a equivalent to
> f(x)

Actually what I really want is a global pipe operator which works like
that, I just aimed for boost::range::algorithms because range::adaptors
already utilized the syntax.

> I suppose we could have a utility library that defines a macro to
generate the wrapper
You mean a macro like: "MAKE_PIPEABLE(boost::accumulate, accumulated);"?


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