Re: [Boost-bugs] [Boost C++ Libraries] #7577: base_from_member with reference types

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7577: base_from_member with reference types
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-04 23:28:02


#7577: base_from_member with reference types
----------------------------------------------+-----------------------------
  Reporter: K-ballo <kaballo86@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: utility
   Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------

Comment (by kaballo86@…):

 I have added an use case with a reference base_from_member resulting in
 undefined behavior. It's based on my original use case, where I had a view
 over a pair of iterators and I wanted to implement a view over a container
 reusing the previous view. When base_from_member is instantiated with a
 reference, the reference points to the copy of the argument used in its
 construction, so it effectively becomes a dangling reference.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7577#comment:2>
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:11 UTC