From 472a94d371cc612e344ea57247c1517f8c1b4736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Thu, 15 Oct 2015 08:48:34 +0200 Subject: [PATCH] CFG: handling C++03 compilers --- include/boost/optional/detail/optional_config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/optional/detail/optional_config.hpp b/include/boost/optional/detail/optional_config.hpp index 6e1fa8b..5f88f3f 100644 --- a/include/boost/optional/detail/optional_config.hpp +++ b/include/boost/optional/detail/optional_config.hpp @@ -82,7 +82,7 @@ #endif // defined(__GNUC__) -#if defined(__GNUC__) +#if (defined __GNUC__) && (!defined BOOST_NO_CXX11_RVALUE_REFERENCES) // On some initial rvalue reference implementations GCC does it in a strange way, // preferring perfect-forwarding constructor to implicit copy constructor.