]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_arithmetic_tommath_br.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_arithmetic_tommath_br.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 #ifdef _MSC_VER
7 #define _SCL_SECURE_NO_WARNINGS
8 #endif
9
10 #include <boost/multiprecision/tommath.hpp>
11
12 #define NO_MIXED_OPS
13 #define BOOST_MP_NOT_TESTING_NUMBER
14
15 #include "test_arithmetic.hpp"
16
17 #include <boost/rational.hpp>
18
19 template <class T>
20 struct is_boost_rational<boost::rational<T> > : public std::integral_constant<bool, true>
21 {};
22
23 namespace boost { namespace multiprecision {
24
25 template <>
26 struct number_category<rational<tom_int> > : public std::integral_constant<int, number_kind_rational>
27 {};
28
29 }} // namespace boost::multiprecision
30
31 int main()
32 {
33 test<boost::rational<boost::multiprecision::tom_int> >();
34 return boost::report_errors();
35 }