Re: [Boost-bugs] [Boost C++ Libraries] #9578: Adapters (map_keys, map_values) cause undefined behavior (segv, etc) when applied to R-Values, especially in the context of BOOST_FOREACH

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9578: Adapters (map_keys, map_values) cause undefined behavior (segv, etc) when applied to R-Values, especially in the context of BOOST_FOREACH
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-03-03 04:49:48


#9578: Adapters (map_keys, map_values) cause undefined behavior (segv, etc) when
applied to R-Values, especially in the context of BOOST_FOREACH
-----------------------------------------+------------------------
  Reporter: Igor Lubashev <ilubashe@…> | Owner: neilgroves
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: range
   Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+------------------------
Changes (by ilubashe@…):

 * status: closed => reopened
 * resolution: wontfix =>
 * severity: Showstopper => Problem

Comment:

 This bug has little to do with BOOST_FOREACH. This is a boost::range
 problems.
 You'll get the same problem with C++11 "for" loops.

 for(const string &s : return_map_by_value() | map_keys)

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