Re: [Boost-bugs] [Boost C++ Libraries] #9750: iterator_range<T> to iterator_range<T const> & implicit conversion

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9750: iterator_range<T> to iterator_range<T const> & implicit conversion
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-07 08:17:02


#9750: iterator_range<T> to iterator_range<T const> & implicit conversion
-------------------------------+--------------------------
  Reporter: psiha | Owner: neilgroves
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.55.0 | Severity: Optimization
Resolution: | Keywords:
-------------------------------+--------------------------

Comment (by psiha):

 Hmm, giving it more thought, I guess it doesn't apply here because
 iterator_range<T> is not a member of iterator_range<T const> (or vice
 verse), only their members are 'compatible' but the the aliasing
 rules/exception don't actually cover that?

 i.e.
 struct A { int * p; };
 struct B { int const * p; };

 objects of A and B cannot alias each other?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9750#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:15 UTC