Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / multiprecision / test / test_arithmetic_cpp_dec_float_3m.cpp
1 ///////////////////////////////////////////////////////////////
2 //  Copyright 2012 John Maddock. Distributed under the Boost
3 //  Software License, Version 1.0. (See accompanying file
4 //  LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
5
6 #define MIXED_OPS_ONLY
7
8 #include <boost/multiprecision/cpp_dec_float.hpp>
9
10 #include "test_arithmetic.hpp"
11
12 template <unsigned D>
13 struct related_type<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D> > >
14 {
15    typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D / 2> > type;
16 };
17
18 int main()
19 {
20    test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long, std::allocator<char> >, boost::multiprecision::et_on> >();
21    return boost::report_errors();
22 }