From c3ee00a45e72efd2dcd27b4e1b163f137fb016f7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 20 Aug 2015 13:34:11 +0100 Subject: [PATCH] Workaround for Oracle C++ compiler --- include/boost/variant/variant.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/variant/variant.hpp b/include/boost/variant/variant.hpp index c4857ed..fa09eb5 100644 --- a/include/boost/variant/variant.hpp +++ b/include/boost/variant/variant.hpp @@ -1352,7 +1352,10 @@ public: // structors destroy_content(); } - variant() BOOST_NOEXCEPT_IF(boost::has_nothrow_constructor::value) + variant() +#if !(defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x5130)) + BOOST_NOEXCEPT_IF(boost::has_nothrow_constructor::value) +#endif { #ifdef _MSC_VER #pragma warning( push )