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 )