Boost logo

Boost :

Subject: Re: [boost] [Boost-users] Formal Review: Boost.RangeEx
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2009-02-22 16:46:22


Thorsten Ottosen wrote:
> Mathias Gaunard skrev:

>> 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)
>
> ?

I naively thought that was equivalent to

std::list<int> l;
l.push_back(0);
l.push_back(1);
l.push_back(2);
l.push_back(3);

but actually, this is exactly what is needed.


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