Hi Jeff, I'm still using boost 1.35 and boost::copy_range is defined in boost\range\iterator_range.hpp Regards Sebastian
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Jeff Flinn Sent: Samstag, 6. März 2010 01:49 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [range] Best way to construct a std::set fromarange?
Sebastian Theophil wrote:
Or you could do
std::set<SomeType> s = boost::copy_range< std::set<SomeType> >( range );
Cool, where's boost::copy_range defined? This should be usable in an initializer list as well I presume.
Jeff
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Sebastian Theophil · stheophil@think-cell.com Software Engineer think-cell Software GmbH · Chausseestr. 8/E · 10115 Berlin, Germany http://www.think-cell.com · phone +49 30 666473-10 · toll-free (US) +1 800 891 8091 Directors: Dr. Markus Hannebauer, Dr. Arno Schoedl · Amtsgericht Berlin-Charlottenburg, HRB 85229