From e8877d4837e53df97d38158a875edf850a01d61a Mon Sep 17 00:00:00 2001 From: Emil Dotchevski Date: Tue, 3 Jan 2017 15:25:52 -0800 Subject: [PATCH] Workaround for 11874 --- include/boost/exception/detail/error_info_impl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/exception/detail/error_info_impl.hpp b/include/boost/exception/detail/error_info_impl.hpp index 479ef54..6fc542c 100644 --- a/include/boost/exception/detail/error_info_impl.hpp +++ b/include/boost/exception/detail/error_info_impl.hpp @@ -49,6 +49,7 @@ boost v_(v) { } +#if (__GNUC__*100+__GNUC_MINOR__!=406) //workaround for g++ bug #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES error_info( error_info const & x ): v_(x.v_) @@ -62,6 +63,7 @@ boost v_(std::move(x.v_)) { } +#endif #endif ~error_info() throw() {