]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_arithmetic_cpp_dec_float_3.cpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_arithmetic_cpp_dec_float_3.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 http://www.boost.org/LICENSE_1_
5
6 #include <boost/multiprecision/cpp_dec_float.hpp>
7
8 #include "test_arithmetic.hpp"
9
10 template <unsigned D>
11 struct related_type<boost::multiprecision::number< boost::multiprecision::cpp_dec_float<D> > >
12 {
13 typedef boost::multiprecision::number< boost::multiprecision::cpp_dec_float<D/2> > type;
14 };
15
16 int main()
17 {
18 test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long, std::allocator<char> >, boost::multiprecision::et_on> >();
19 return boost::report_errors();
20 }
21