]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_arithmetic_cpp_dec_float_3.cpp
add subtree-ish sources for 12.0.3
[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 #ifdef _MSC_VER
7 # define _SCL_SECURE_NO_WARNINGS
8 #endif
9
10 #include <boost/multiprecision/cpp_dec_float.hpp>
11
12 #include "test_arithmetic.hpp"
13
14 template <unsigned D>
15 struct related_type<boost::multiprecision::number< boost::multiprecision::cpp_dec_float<D> > >
16 {
17 typedef boost::multiprecision::number< boost::multiprecision::cpp_dec_float<D/2> > type;
18 };
19
20 int main()
21 {
22 test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long, std::allocator<void> >, boost::multiprecision::et_on> >();
23 return boost::report_errors();
24 }
25