
Nat Goodspeed skrev:
Thorsten Ottosen wrote:
Nat Goodspeed skrev:
template
TYPE make_from_range(const RANGE& range); http://www.boost.org/doc/libs/1_36_0/libs/range/doc/utility_class.html#copy_...
*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