[Boost-bugs] [Boost C++ Libraries] #11875: Boost.Phoenix should not forward-declare std::unordered_set / map

Subject: [Boost-bugs] [Boost C++ Libraries] #11875: Boost.Phoenix should not forward-declare std::unordered_set / map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-28 14:04:52


#11875: Boost.Phoenix should not forward-declare std::unordered_set / map
-------------------------------------------------+-------------------------
 Reporter: Jean-Michaël Celerier | Owner: theller
  <jeanmichael.celerier@…> | Status: new
     Type: Bugs | Component: phoenix
Milestone: To Be Determined | Severity: Problem
  Version: Boost 1.60.0 |
 Keywords: |
-------------------------------------------------+-------------------------
 Boost 1.60 introduced the header
 boost/phoenix/stl/algorithm/detail/std_unordered_set_or_map_fwd.hpp.

 When building on Linux with libstdc++ debug mode (-DGLIBCXX_DEBUG) this
 causes ambiguous references to the forward-declared classes because in
 libstdc++ side, they now live in the std::__debug namespace instead.

 The following test cases triggers it :


 {{{

 #include <boost/spirit/include/phoenix.hpp>
 #include <unordered_map>

 void f()
 {
         std::unordered_map<int, float> map;
 }
 }}}

 when built with

 {{{ g++ -std=c++11 -D_GLIBCXX_DEBUG=1 -c problem.cpp }}}

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