boost/libs/multiprecision/test/test_arithmetic_cpp_dec_float_3.cpp

23 lines
772 B
C++
Raw Permalink Normal View History

2018-01-12 21:47:58 +01:00
///////////////////////////////////////////////////////////////
// Copyright 2012 John Maddock. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
2021-10-05 21:37:46 +02:00
// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
2018-01-12 21:47:58 +01:00
2021-10-05 21:37:46 +02:00
#define NO_MIXED_OPS
2018-01-12 21:47:58 +01:00
#include <boost/multiprecision/cpp_dec_float.hpp>
#include "test_arithmetic.hpp"
template <unsigned D>
2021-10-05 21:37:46 +02:00
struct related_type<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D> > >
2018-01-12 21:47:58 +01:00
{
2021-10-05 21:37:46 +02:00
typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D / 2> > type;
2018-01-12 21:47:58 +01:00
};
int main()
{
2021-10-05 21:37:46 +02:00
test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long, std::allocator<char> >, boost::multiprecision::et_on> >();
2018-01-12 21:47:58 +01:00
return boost::report_errors();
}