Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6167: Assignment from a temporary of a class containing boost::unordered_map members fails with GNU GCC.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-23 13:20:16
#6167: Assignment from a temporary of a class containing boost::unordered_map
members fails with GNU GCC.
----------------------------------------------+-----------------------------
Reporter: Geurt Vos <geurt.vos@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: unordered
Version: Boost 1.48.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------
Comment (by Geurt Vos <geurt.vos@â¦>):
I see Boost.Move tells me how to work around it. Note also that assignment
from map_list_of can't be done anymore (although that doesn't work at all
when -std=c++0x, but that's not an unordered bug). So this will now also
fail:
boost::unordered_map<int, int> m;[[BR]]
m = boost::assign::map_list_of(1, 1)(2, 2);
I guess the only good way around it all ... is to provide two versions of
all unordered containers (with & without move). So one in 'boost' and one
in 'boost::container'.
If that isn't going to happen and if this is not considered a bug, but a
limitation (or nuisance), I'd say these breaking changes should be well
documented @ Boost.Unordered.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6167#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:07 UTC