Re: [Boost-bugs] [Boost C++ Libraries] #7630: Range adaptors do not play nicely with range-based for loops

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7630: Range adaptors do not play nicely with range-based for loops
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-06-14 15:58:58


#7630: Range adaptors do not play nicely with range-based for loops
-------------------------------+------------------------
  Reporter: gromer@… | Owner: neilgroves
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: range
   Version: Boost 1.51.0 | Severity: Problem
Resolution: | Keywords: range
-------------------------------+------------------------

Comment (by anonymous):

 Yes, this really is a problem. See [ticket:7630#comment:5 comment 5]
 above: the issue isn't the lifetime of the value of `((vec |
 boost::adaptors::reversed) | boost::adaptors::uniqued)`, it's the lifetime
 of the ''subexpression'' `(vec | boost::adaptors::reversed)`, which is not
 bound to a local reference, and so does not have its lifetime extended.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7630#comment:9>
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:13 UTC