Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range] Adapt 2-iterator container constructors for Range?
From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-09-24 09:48:55


Nat Goodspeed skrev:
> Thorsten Ottosen wrote:
>
>> Nat Goodspeed skrev:
>
>>> template<class TYPE, typename RANGE>
>>> TYPE make_from_range(const RANGE& range);
>
>> http://www.boost.org/doc/libs/1_36_0/libs/range/doc/utility_class.html#copy_range
>
>
> *blush* Thanks. I don't know why that didn't jump out at me when I
> looked through the documentation. Perhaps a brief usage example would
> have caught my attention more successfully.
>
> I'm still interested in the problem of declaring a local instance of a
> standard container without having to restate its type. I'd be happy with
> either Roman's approach or my own suggestion, but I do think the library
> would benefit from the addition of some such feature.

I think that would be worthwhile. Romans suggestion seems elegant.
Unfortunately, I don't have the time to implement/test/update the docs,
(It takes some time before all these things are updated properly).
but if you provide these as patches, and make a post on the dev list, I
can manage to include it. If its possible to overload copy_range, I
would prefer that. If you don't have the time, I'll put it on my todo list.

best regards

-Thorsten


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