Re: [Boost-bugs] [Boost C++ Libraries] #6167: Assignment from a temporary of a class containing boost::unordered_map members fails with GNU GCC.

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: 2012-06-05 03:00:52


#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 yurik@…):

 In what seems to be either the same or related issue, on some versions of
 gcc (llvm-gcc-4.2 from Xcode on OS X, but not g++-4.1.2 in Linux) the
 following also does not compile (using the same 'struct A' from above):

 A a1, a2;
 std::swap(a1, a2); // Compile error inside generic non-specialized
 std::swap() when assigning "const Tmp tmp = ...;".

 On the other hand the originally described problem (simply 'A a; a =
 A();') occurs on both compilers I mentioned.

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