[Boost-bugs] [Boost C++ Libraries] #6311: Broken const-ref semantics

Subject: [Boost-bugs] [Boost C++ Libraries] #6311: Broken const-ref semantics
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-21 14:54:57


#6311: Broken const-ref semantics
-----------------------------------------------------+----------------------
 Reporter: Akim Demaille <akim.demaille@…> | Owner: danieljames
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
  Version: Boost 1.48.0 | Severity: Regression
 Keywords: |
-----------------------------------------------------+----------------------
 in Boost 1.48, unordered_maps seem to have lost the semantics of constrefs
 that "enl4rge your object lifetime".

 The following runs are on a Mac OS X Lion, native clang++ 2.1 and native
 G++ 4.2. The latter is completely wrong. It used to be correct. Boost
 1.48 installed via MacPorts.

 {{{
 clang++ 2.1
 $ /tmp/foo.clang
 make_map: size: 2, bar => BAR, foo => FOO
 return_map: size: 2, bar => BAR, foo => FOO
 main: size: 2, bar => BAR, foo => FOO

 g++ 4.2
 $ /tmp/foo.gcc
 make_map: size: 2, bar => BAR, foo => FOO
 return_map: size: 0
 main: size: 0
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6311>
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:08 UTC