Boost logo

Boost Users :

Subject: Re: [Boost-users] [Range] Adapt 2-iterator container constructors for Range?
From: Nat Goodspeed (nat_at_[hidden])
Date: 2008-09-24 09:37:51


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.


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