]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/multiprecision/test/test_arithmetic_mpz_br.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / multiprecision / test / test_arithmetic_mpz_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 http://www.boost.org/LICENSE_1_
5
6 #ifdef _MSC_VER
7 # define _SCL_SECURE_NO_WARNINGS
8 #endif
9
10 #include <boost/multiprecision/gmp.hpp>
11
12 #define NO_MIXED_OPS
13
14 #include "test_arithmetic.hpp"
15 #include <boost/rational.hpp>
16
17 template <class T>
18 struct is_boost_rational<boost::rational<T> > : public boost::mpl::true_{};
19
20 namespace boost{ namespace multiprecision{
21
22 template<>
23 struct number_category<rational<mpz_int> > : public mpl::int_<number_kind_rational> {};
24
25 }}
26
27 int main()
28 {
29 test<boost::rational<boost::multiprecision::mpz_int> >();
30 return boost::report_errors();
31 }
32