Re: [Boost-bugs] [Boost C++ Libraries] #5816: any_range requires copyable elements

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5816: any_range requires copyable elements
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-04 07:52:00

#5816: any_range requires copyable elements
  Reporter: bromeon@… | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.47.0 | Severity: Problem
Resolution: | Keywords:

Comment (by anonymous):

 I also encountered this problem recently. It prevents me from using
 boost::any_range as an object interface abstraction, since i don't want
 the values copied (i want to expose iterators to Base, and supply a
 container of Derived objects in the implementation).

 I do not see any good reason to require copying when all any_range is is
 an abstract view into the source range. That elements aren't going to be
 copied should be made into a guarantee.

 This is a 2 year old bug, is it possible that it can be fixed soon?

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:15 UTC