// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt). // // See http://www.boost.org/libs/type_traits for most recent version including documentation. #ifndef BOOST_TT_HAS_NOTHROW_CONSTRUCTOR_HPP_INCLUDED #define BOOST_TT_HAS_NOTHROW_CONSTRUCTOR_HPP_INCLUDED #include // size_t #include #include #ifdef BOOST_HAS_NOTHROW_CONSTRUCTOR #if defined(BOOST_MSVC) || defined(BOOST_INTEL) #include #endif #if defined(__GNUC__ ) || defined(__SUNPRO_CC) || defined(__clang__) #include #endif namespace boost { template struct has_nothrow_constructor : public integral_constant{}; #elif !defined(BOOST_NO_CXX11_NOEXCEPT) #include #include #ifdef BOOST_MSVC #pragma warning(push) #pragma warning(disable:4197) // top-level volatile in cast is ignored #endif namespace boost { namespace detail{ template struct has_nothrow_constructor_imp : public boost::integral_constant{}; 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>{}; #ifdef BOOST_MSVC #pragma warning(pop) #endif #else #include namespace boost { template struct has_nothrow_constructor : public ::boost::has_trivial_constructor {}; #endif template<> struct has_nothrow_constructor : public false_type {}; #ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS template<> struct has_nothrow_constructor : public false_type{}; template<> struct has_nothrow_constructor : public false_type{}; template<> struct has_nothrow_constructor : public false_type{}; #endif template struct has_nothrow_default_constructor : public has_nothrow_constructor{}; } // namespace boost #endif // BOOST_TT_HAS_NOTHROW_CONSTRUCTOR_HPP_INCLUDED