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
7 #define _SCL_SECURE_NO_WARNINGS
10 #include <boost/multiprecision/gmp.hpp>
13 #define BOOST_MP_NOT_TESTING_NUMBER
15 #include "test_arithmetic.hpp"
16 #include <boost/rational.hpp>
19 struct is_boost_rational<boost::rational<T> > : public boost::mpl::true_
22 namespace boost { namespace multiprecision {
25 struct number_category<rational<mpz_int> > : public mpl::int_<number_kind_rational>
28 }} // namespace boost::multiprecision
32 test<boost::rational<boost::multiprecision::mpz_int> >();
33 return boost::report_errors();