]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/multiprecision/test/test_nothrow_cpp_bin_float.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_nothrow_cpp_bin_float.cpp
index c534c3d106872292711bb1b656a73e147807919c..cb3b87d27eab7358a8e388fe09323436bd8831ce 100644 (file)
@@ -4,48 +4,27 @@
 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
 #include <boost/multiprecision/cpp_bin_float.hpp>
-#include <boost/type_traits/is_nothrow_move_constructible.hpp>
-#include <boost/type_traits/is_nothrow_move_assignable.hpp>
-#include <boost/type_traits/has_nothrow_constructor.hpp>
-#include <boost/type_traits/has_nothrow_assign.hpp>
-#include <boost/type_traits/has_nothrow_copy.hpp>
-#include <boost/static_assert.hpp>
+#include <type_traits>
 
-#ifndef BOOST_NO_CXX11_NOEXCEPT
-
-#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_CONSTRUCT)
 //
 // Move construct:
 //
-BOOST_STATIC_ASSERT(boost::is_nothrow_move_constructible<boost::multiprecision::cpp_bin_float_100>::value);
-
-#endif
-
-#if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN)
+static_assert(std::is_nothrow_move_constructible<boost::multiprecision::cpp_bin_float_100>::value, "is_nothrow_move_constructible test");
 //
 // Move assign:
 //
-BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::cpp_bin_float_100>::value);
-
-#endif
+static_assert(std::is_nothrow_move_assignable<boost::multiprecision::cpp_bin_float_100>::value, "is_nothrow_move_assignable test");
 
 //
 // Construct:
 //
-#ifdef BOOST_HAS_NOTHROW_CONSTRUCTOR
-BOOST_STATIC_ASSERT(boost::has_nothrow_constructor<boost::multiprecision::cpp_bin_float_100>::value);
-#endif
+static_assert(std::is_nothrow_default_constructible<boost::multiprecision::cpp_bin_float_100>::value, "is_nothrow_default_constructible test");
 //
 // Copy construct:
 //
-#ifdef BOOST_HAS_NOTHROW_COPY
-BOOST_STATIC_ASSERT(boost::has_nothrow_copy<boost::multiprecision::cpp_bin_float_100>::value);
-#endif
+static_assert(std::is_nothrow_copy_constructible<boost::multiprecision::cpp_bin_float_100>::value, "is_nothrow_copy_constructible test");
 //
 // Assign:
 //
-#ifdef BOOST_HAS_NOTHROW_ASSIGN
-BOOST_STATIC_ASSERT(boost::has_nothrow_assign<boost::multiprecision::cpp_bin_float_100>::value);
-#endif
+static_assert(std::is_nothrow_copy_assignable<boost::multiprecision::cpp_bin_float_100>::value, "is_nothrow_copy_assignable test");
 
-#endif // noexcept