]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/multiprecision/test/test_arithmetic_cpp_dec_float_2.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_arithmetic_cpp_dec_float_2.cpp
CommitLineData
7c673cae
FG
1///////////////////////////////////////////////////////////////
2// Copyright 2012 John Maddock. Distributed under the Boost
3// Software License, Version 1.0. (See accompanying file
92f5a8d4 4// LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
7c673cae 5
7c673cae
FG
6#include <boost/multiprecision/cpp_dec_float.hpp>
7
8#include "test_arithmetic.hpp"
9
10template <unsigned D>
92f5a8d4 11struct related_type<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D> > >
7c673cae 12{
92f5a8d4 13 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D / 2> > type;
7c673cae
FG
14};
15
16int main()
17{
18 test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long>, boost::multiprecision::et_off> >();
19 return boost::report_errors();
20}