]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /////////////////////////////////////////////////////////////// |
2 | // Copyright 2012 John Maddock. Distributed under the Boost | |
3 | // Software License, Version 1.0. (See accompanying file | |
92f5a8d4 | 4 | // LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt |
7c673cae FG |
5 | |
6 | #ifdef _MSC_VER | |
92f5a8d4 | 7 | #define _SCL_SECURE_NO_WARNINGS |
7c673cae FG |
8 | #endif |
9 | ||
10 | #include <boost/multiprecision/tommath.hpp> | |
11 | ||
12 | #include "test_arithmetic.hpp" | |
13 | ||
14 | template <> | |
1e59de90 | 15 | struct is_twos_complement_integer<boost::multiprecision::tom_int> : public std::integral_constant<bool, false> |
92f5a8d4 | 16 | {}; |
7c673cae | 17 | |
1e59de90 TL |
18 | template <> |
19 | struct related_type<boost::multiprecision::number<boost::multiprecision::rational_adaptor<boost::multiprecision::tommath_int> > > | |
20 | { | |
21 | typedef boost::multiprecision::number<boost::multiprecision::tommath_int> type; | |
22 | }; | |
23 | ||
24 | ||
7c673cae FG |
25 | int main() |
26 | { | |
27 | test<boost::multiprecision::number<boost::multiprecision::rational_adaptor<boost::multiprecision::tommath_int> > >(); | |
28 | return boost::report_errors(); | |
29 | } |