Re: [Boost-bugs] [Boost C++ Libraries] #10514: Cannot copy const sub_range to non-const

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10514: Cannot copy const sub_range to non-const
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-02 09:05:54


#10514: Cannot copy const sub_range to non-const
-----------------------------------------+------------------------
  Reporter: Braden McDaniel <braden@…> | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.56.0 | Severity: Regression
Resolution: | Keywords:
-----------------------------------------+------------------------
Changes (by neilgroves):

 * status: reopened => new

Comment:

 I didn't comprehend initially that the snippet of code posted compiled
 with 1.55. I apologise for not understanding this despite you correctly
 putting the severity as regression.

 Upon closer inspection this does appear like it ought to compile but not
 for the reasons you described. It is indeed intended for a const sub_range
 to return const_iterator. The strange issue is that const_iterator is not
 converting to iterator. This might be related to a problem in Boost 1.57
 where Boost.Range had some specialisations of Boost.Iterator and
 Boost.Iterator had the namespace changed for the class specialised within
 Boost.Range. If it is related to this, then the "develop" and "master"
 branch of Boost.Range already contain a fix.

 I have to do my day job for a bit, but I'll get back to looking at this as
 soon as I can. I don't have any Microsoft C++ compilers other than the
 free ones anymore. Hopefully this will show up on Clang or GCC when I try
 them.

 Depending on the urgency of this defect, you may wish to pull the branches
 to see if they solve the problem. I'm aiming to look at this again later
 tonight.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10514#comment:3>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

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