|
Boost : |
Subject: Re: [boost] [Boost-users] Formal Review: Boost.RangeEx
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2009-02-22 16:30:48
Mathias Gaunard skrev:
> Neil Groves wrote:
>> Thank you for taking the time to review Boost.RangeEx.
>>
>> On Sat, Feb 21, 2009 at 11:50 AM, Christopher Jefferson <
>> chris_at_[hidden]> wrote:
>
>>> 4) I have found it useful to have a simple helper function that turns a
>>> single value into a range with one value.
>>>
>>
>> I can add this. I'm struggling to think of a good name. What name did you
>> chose?
>
> It doesn't need to be restricted to a single element.
>
> make_range(0, 1, 2, 3) could be a range of 4 elements, being 0, 1, 2 and 3.
You mean like
boost::assign::list_of(0)(1)(2)(3)
?
-Thorsten
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk