// (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_DESTRUCTOR_HPP_INCLUDED #define BOOST_TT_HAS_NOTHROW_DESTRUCTOR_HPP_INCLUDED #include #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(__SUNPRO_CC) && !(defined(BOOST_MSVC) && (_MSC_FULL_VER < 190023506)) #include #include #include #include namespace boost{ namespace detail{ template struct has_nothrow_destructor_imp : public boost::integral_constant{}; template struct has_nothrow_destructor_imp : public boost::integral_constant()->~T())>{}; } template struct has_nothrow_destructor : public detail::has_nothrow_destructor_imp::value> { BOOST_STATIC_ASSERT_MSG(boost::is_complete::value, "Arguments to has_nothrow_destructor must be complete types"); }; template struct has_nothrow_destructor : public has_nothrow_destructor { BOOST_STATIC_ASSERT_MSG(boost::is_complete::value, "Arguments to has_nothrow_destructor must be complete types"); }; template struct has_nothrow_destructor : public integral_constant{}; #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) template struct has_nothrow_destructor : public integral_constant{}; #endif template <> struct has_nothrow_destructor : public false_type {}; } #else namespace boost { template struct has_nothrow_destructor : public ::boost::has_trivial_destructor {}; } // namespace boost #endif #endif // BOOST_TT_HAS_NOTHROW_DESTRUCTOR_HPP_INCLUDED