From 14d595e2607088eeab95d8427372c5dfcaff498a Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 24 Jul 2015 10:04:44 +0100 Subject: [PATCH] Fix a few more MSVC-14 failures. --- include/boost/type_traits/has_nothrow_assign.hpp | 6 +++--- include/boost/type_traits/has_nothrow_constructor.hpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/type_traits/has_nothrow_assign.hpp b/include/boost/type_traits/has_nothrow_assign.hpp index 764844f..a7312a1 100644 --- a/include/boost/type_traits/has_nothrow_assign.hpp +++ b/include/boost/type_traits/has_nothrow_assign.hpp @@ -14,7 +14,7 @@ #if !defined(BOOST_HAS_NOTHROW_ASSIGN) || defined(BOOST_MSVC) || defined(BOOST_INTEL) #include -#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) +#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #include #include #include @@ -36,7 +36,7 @@ namespace boost { -#if !defined(BOOST_HAS_NOTHROW_ASSIGN) && !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) +#if !defined(BOOST_HAS_NOTHROW_ASSIGN) && !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) namespace detail { @@ -51,7 +51,7 @@ namespace boost { template struct has_nothrow_assign : public integral_constant < bool, #ifndef BOOST_HAS_NOTHROW_ASSIGN -#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) +#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) // Portable C++11 version: detail::has_nothrow_assign_imp::type>::value || is_volatile::type>::value || is_reference::value), diff --git a/include/boost/type_traits/has_nothrow_constructor.hpp b/include/boost/type_traits/has_nothrow_constructor.hpp index c57ad8c..e5af89f 100644 --- a/include/boost/type_traits/has_nothrow_constructor.hpp +++ b/include/boost/type_traits/has_nothrow_constructor.hpp @@ -38,8 +38,8 @@ template struct has_nothrow_constructor : public integral_constant struct has_nothrow_constructor_imp : public boost::integral_constant{}; - template struct has_nothrow_constructor_imp : public boost::integral_constant::type())>{}; - + template struct has_nothrow_constructor_imp : public boost::integral_constant{}; + template struct has_nothrow_constructor_imp : public has_nothrow_constructor_imp {}; } template struct has_nothrow_constructor : public detail::has_nothrow_constructor_imp::value>{};