[Boost-bugs] [Boost C++ Libraries] #8772: boost.variant broken in combination with g++ 4.6.x series and C++0x

Subject: [Boost-bugs] [Boost C++ Libraries] #8772: boost.variant broken in combination with g++ 4.6.x series and C++0x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-03 11:58:26


#8772: boost.variant broken in combination with g++ 4.6.x series and C++0x
--------------------------------+------------------------
 Reporter: anonymous | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.54.0 | Severity: Regression
 Keywords: signals2 gcc 4.6.x |
--------------------------------+------------------------
 We observed compilation errors in case the main header of boost.signals2
 has been included.

 Example code :


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

 int main() { return 0; }
 }}}

 The following call fails with errors
 {{{
 g++-4.6.3 --std=c++0x main.cpp -I /opt/boost_1_54_0/
 }}}

 The error message points to some sections in boost.variant recently
 modified for boost 1.54.0 (I attached the rather lengthly error message).

 In case c++0x is not activated or a 4.7/4.8-series version is used, the
 compilation succeeds.

 We simply excluded the problematic section in file
 boost/variant/variant.hpp which resolved our compilation problem.

 I saw that the gcc 4.6 series is not in the list of compilers tested with
 C++11 enabled but for us this section in variant is the first that fails
 in case the preprocessor macro BOOST_NO_CXX11_RVALUE_REFERENCES is not
 set.

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