Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range] Proposal to add a new range adaptor (first_nd), or modify sliced
From: Akira Takahashi (faithandbrave_at_[hidden])
Date: 2012-08-31 01:37:06


2012/8/31 Neil Groves <neil_at_[hidden]>:
> Dear all,
>
>
> On Monday, August 27, 2012, Nathan Ridge wrote:
>>
>>
>> > Problem:
>> > Get the first N element of a SinglePassRange. It is not possible with
>> > sliced, because it requires RandamAccessRange.
>>
>> Note that this is possible with the 'taken' range adaptor [1] in the
>> Boost.Range Extensions library [2] proposed by Akira Takahashi, which
>> is on the review schedule [3], atlhough with no review date set yet.
>>
>
> I wonder if this is the best plan. In my time following Boost we have
> already had two reviews for Boost.Range. These additions appear to be
> incremental and cohesive with the existing design idioms.
>
> Would it be more appropriate to have me spend some time bringing the
> functionality into the trunk of Boost.Range? I would imagine we could
> deliver the desired result more quickly for Boost.Range and reduced the
> queue size to the benefit of other components? I promise to be less rubbish
> than I have been the past few months looking after my Trac tickets!
>
>>
>> The equivalent of sliced(n, m) for SinglePassRanges is also possible
>> by combining the 'taken' and 'dropped' [4] adaptors from that library:
>>
>> range | taken(n) | dropped(m) // same elements as 'range | sliced(n, m)'
>>
>> Regards,
>> Nate
>>
>
> I'd be interested in the communities preferences with regard to choosing
> another review, or expedited merge.

I agree with that.
I prefer marging to trunk, rather than wating for a formal review.

At any rate, I'll cooperate with AFAP.

Regards,
Akira

>>========================
Akira Takahashi
site: https://sites.google.com/site/faithandbrave/about/en


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