[Boost-bugs] [Boost C++ Libraries] #12534: flat_map fails to compile if included after type_traits is instantiated under gcc.

Subject: [Boost-bugs] [Boost C++ Libraries] #12534: flat_map fails to compile if included after type_traits is instantiated under gcc.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-18 04:12:55


#12534: flat_map fails to compile if included after type_traits is instantiated
under gcc.
------------------------------+------------------------
 Reporter: eurokang@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.62.0 | Severity: Regression
 Keywords: |
------------------------------+------------------------
 Compiler gcc-5.4.0.

 {{{
 #include <boost/type_traits.hpp>

 static const bool is_enum = boost::is_enum<std::pair<int, int> >::value;

 #include <boost/container/flat_map.hpp>

 boost::container::flat_map<int, int> m;
 }}}

 error is:
 {{{
 /boost/boost/container/detail/pair.hpp:433:8: error: partial
 specialization of ‘struct boost::is_enum<std::pair<_T1, _T2> >’ after
 instantiation of ‘struct boost::is_enum<std::pair<int, int> >’
 [-fpermissive]
 }}}

 Version 1.59.0 compiles fine.

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