2018-01-12 21:47:58 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// 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>
|
2021-10-05 21:37:46 +02:00
|
|
|
#include <type_traits>
|
2018-01-12 21:47:58 +01:00
|
|
|
|
|
|
|
//
|
|
|
|
// Move construct:
|
|
|
|
//
|
2021-10-05 21:37:46 +02:00
|
|
|
static_assert(std::is_nothrow_move_constructible<boost::multiprecision::mpz_int>::value, "noexcept test");
|
|
|
|
static_assert(std::is_nothrow_move_constructible<boost::multiprecision::mpq_rational>::value, "noexcept test");
|
|
|
|
static_assert(std::is_nothrow_move_constructible<boost::multiprecision::mpf_float>::value, "noexcept test");
|
2018-01-12 21:47:58 +01:00
|
|
|
//
|
|
|
|
// Move assign:
|
|
|
|
//
|
2021-10-05 21:37:46 +02:00
|
|
|
static_assert(std::is_nothrow_move_assignable<boost::multiprecision::mpz_int>::value, "noexcept test");
|
|
|
|
static_assert(std::is_nothrow_move_assignable<boost::multiprecision::mpq_rational>::value, "noexcept test");
|
|
|
|
static_assert(std::is_nothrow_move_assignable<boost::multiprecision::mpf_float>::value, "noexcept test");
|