]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_nothrow_cpp_bin_float.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_nothrow_cpp_bin_float.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Copyright 2015 John Maddock. Distributed under the Boost
3 // Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #include <boost/multiprecision/cpp_bin_float.hpp>
7 #include <boost/type_traits/is_nothrow_move_constructible.hpp>
8 #include <boost/type_traits/is_nothrow_move_assignable.hpp>
9 #include <boost/type_traits/has_nothrow_constructor.hpp>
10 #include <boost/type_traits/has_nothrow_assign.hpp>
11 #include <boost/type_traits/has_nothrow_copy.hpp>
12 #include <boost/static_assert.hpp>
13
14 #ifndef BOOST_NO_CXX11_NOEXCEPT
15
16 #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_CONSTRUCT)
17 //
18 // Move construct:
19 //
20 BOOST_STATIC_ASSERT(boost::is_nothrow_move_constructible<boost::multiprecision::cpp_bin_float_100>::value);
21
22 #endif
23
24 #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN)
25 //
26 // Move assign:
27 //
28 BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::cpp_bin_float_100>::value);
29
30 #endif
31
32 //
33 // Construct:
34 //
35 #ifdef BOOST_HAS_NOTHROW_CONSTRUCTOR
36 BOOST_STATIC_ASSERT(boost::has_nothrow_constructor<boost::multiprecision::cpp_bin_float_100>::value);
37 #endif
38 //
39 // Copy construct:
40 //
41 #ifdef BOOST_HAS_NOTHROW_COPY
42 BOOST_STATIC_ASSERT(boost::has_nothrow_copy<boost::multiprecision::cpp_bin_float_100>::value);
43 #endif
44 //
45 // Assign:
46 //
47 #ifdef BOOST_HAS_NOTHROW_ASSIGN
48 BOOST_STATIC_ASSERT(boost::has_nothrow_assign<boost::multiprecision::cpp_bin_float_100>::value);
49 #endif
50
51 #endif // noexcept