Boost logo

Boost Users :

Subject: [Boost-users] [Range] Sliced... less than it could be.
From: Robert Jones (robertgbjones_at_[hidden])
Date: 2012-12-10 04:33:39


I was disappointed to discover that I can't write

range | filtered( some_predicate ) | sliced( n, m ) | .....

because sliced requires a random access range, and filtered produces a
forward range!

Piffle.

It seems such a useful and obvious use-case. Is this restriction really
necessary?

Thx, Rob.



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