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-06 22:09:31


#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 steven_watanabe):

 Replying to [ticket:9750 psiha]:
> AFAICT, should be safe WRT strict-aliasing-rules...

 It is not. An iterator_range<T> is not an iterator_range<T const> and
 cannot safely be treated as such just because they happen to have the same
 layout.

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