| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
| // Copyright 2015 John Maddock. Distributed under 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) | ||
|
|
||
| #include <boost/multiprecision/cpp_dec_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> | ||
|
|
||
| #ifndef BOOST_NO_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_dec_float_100>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN) | ||
| // | ||
| // Move assign: | ||
| // | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::cpp_dec_float_100>::value); | ||
|
|
||
| #endif | ||
|
|
||
| // | ||
| // Construct: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_CONSTRUCTOR | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_constructor<boost::multiprecision::cpp_dec_float_100>::value); | ||
| #endif | ||
| // | ||
| // Copy construct: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_COPY | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_copy<boost::multiprecision::cpp_dec_float_100>::value); | ||
| #endif | ||
| // | ||
| // Assign: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_ASSIGN | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_assign<boost::multiprecision::cpp_dec_float_100>::value); | ||
| #endif | ||
|
|
||
| #endif // noexcept | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
| // Copyright 2015 John Maddock. Distributed under 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) | ||
|
|
||
| #include <boost/multiprecision/float128.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> | ||
|
|
||
| #ifndef BOOST_NO_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::float128>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN) | ||
| // | ||
| // Move assign: | ||
| // | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::float128>::value); | ||
|
|
||
| #endif | ||
|
|
||
| // | ||
| // Construct: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_CONSTRUCTOR | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_constructor<boost::multiprecision::float128>::value); | ||
| #endif | ||
| // | ||
| // Copy construct: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_COPY | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_copy<boost::multiprecision::float128>::value); | ||
| #endif | ||
| // | ||
| // Assign: | ||
| // | ||
| #ifdef BOOST_HAS_NOTHROW_ASSIGN | ||
| BOOST_STATIC_ASSERT(boost::has_nothrow_assign<boost::multiprecision::float128>::value); | ||
| #endif | ||
|
|
||
| #endif // noexcept | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
| // Copyright 2015 John Maddock. Distributed under 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) | ||
|
|
||
| #include <boost/multiprecision/gmp.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> | ||
|
|
||
| #ifndef BOOST_NO_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::mpz_int>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_constructible<boost::multiprecision::mpq_rational>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_constructible<boost::multiprecision::mpf_float>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN) | ||
| // | ||
| // Move assign: | ||
| // | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::mpz_int>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::mpq_rational>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::mpf_float>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #endif // noexcept | ||
|
|
||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
| // Copyright 2015 John Maddock. Distributed under 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) | ||
|
|
||
| #include <boost/multiprecision/mpfr.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> | ||
|
|
||
| #ifndef BOOST_NO_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::mpfr_float>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_constructible<boost::multiprecision::mpfr_float_100>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #if !defined(BOOST_NO_CXX11_NOEXCEPT) && !defined(BOOST_NO_SFINAE_EXPR) || defined(BOOST_IS_NOTHROW_MOVE_ASSIGN) | ||
| // | ||
| // Move assign: | ||
| // | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::mpfr_float>::value); | ||
| BOOST_STATIC_ASSERT(boost::is_nothrow_move_assignable<boost::multiprecision::mpfr_float_100>::value); | ||
|
|
||
| #endif | ||
|
|
||
| #endif // noexcept | ||
|
|
||
|
|