Re: [Boost-bugs] [Boost C++ Libraries] #10493: Since 1.56, any_range with non-reference references can cause UB

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10493: Since 1.56, any_range with non-reference references can cause UB
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-03-08 08:44:25


#10493: Since 1.56, any_range with non-reference references can cause UB
---------------------------+-------------------------
  Reporter: nofitserov@… | Owner: Neil Groves
      Type: Bugs | Status: assigned
 Milestone: Boost 1.64.0 | Component: range
   Version: Boost 1.62.0 | Severity: Regression
Resolution: | Keywords:
---------------------------+-------------------------

Comment (by jeremy.coulon.jrmc@…):

 Problem still there in boost 1.65.1

 Adding const to Reference doesn't workaround the problem (at least on
 Visual Studio):
 c:\path\to\boost\1.65.1\include\boost\range\detail\any_iterator_wrapper.hpp(302)
 : warning C4172: returning address of local variable or temporary

-- 
Ticket URL: <https://svn.boost.org/trac10/ticket/10493#comment:8>
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 : 2018-03-08 08:51:11 UTC