Boost logo

Boost :

Subject: Re: [boost] [SPAM (Bayesian)] - Re: Formal Review: Boost.RangeEx - Bayesian Filter detected spam
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-03-02 11:28:53


David Abrahams wrote:
> on Mon Mar 02 2009, Robert Jones <robertgbjones-AT-gmail.com> wrote:

>> AFAICS there's no issue in principle with something like
>>
>> vecn | boost::adaptors::sort
>>
> [...]
> The right answer may be to copy the range in that case.

You may not want to copy the range if the elements aren't copiable or
are costly to copy. An alternative solution is simply to create an index
instead, and use that index to iterate the range.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk