]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | /////////////////////////////////////////////////////////////// |
2 | // Copyright 2012 - 2021 John Maddock. | |
3 | // Copyright 2021 Matt Borland. Distributed under the Boost | |
4 | // Software License, Version 1.0. (See accompanying file | |
5 | // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt | |
6 | ||
7 | #define BOOST_MP_STANDALONE | |
8 | ||
9 | #include "test_arithmetic.hpp" | |
10 | #include <boost/multiprecision/cpp_dec_float.hpp> | |
11 | ||
12 | template <unsigned D> | |
13 | struct related_type<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D>>> | |
14 | { | |
15 | using type = boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D / 2>>; | |
16 | }; | |
17 | ||
18 | int main() | |
19 | { | |
20 | test<boost::multiprecision::cpp_dec_float_50>(); | |
21 | return boost::report_errors(); | |
22 | } |