]>
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/gmp.hpp> | |
11 | #include "test_mixed.hpp" | |
12 | ||
13 | int main() | |
14 | { | |
15 | #ifndef BOOST_NO_EXCEPTIONS | |
92f5a8d4 TL |
16 | try |
17 | { | |
7c673cae | 18 | #endif |
92f5a8d4 TL |
19 | typedef boost::multiprecision::number<boost::multiprecision::gmp_float<100>, boost::multiprecision::et_on> big_type1; |
20 | typedef boost::multiprecision::number<boost::multiprecision::gmp_float<50>, boost::multiprecision::et_on> small_type1; | |
7c673cae | 21 | typedef boost::multiprecision::number<boost::multiprecision::gmp_float<100>, boost::multiprecision::et_off> big_type2; |
92f5a8d4 | 22 | typedef boost::multiprecision::number<boost::multiprecision::gmp_float<50>, boost::multiprecision::et_off> small_type2; |
7c673cae FG |
23 | |
24 | test<big_type1, small_type1>(); | |
25 | test<big_type2, small_type2>(); | |
26 | test<big_type1, small_type2>(); | |
27 | test<big_type2, small_type1>(); | |
28 | #ifndef BOOST_NO_EXCEPTIONS | |
29 | } | |
92f5a8d4 | 30 | catch (const std::exception& e) |
7c673cae FG |
31 | { |
32 | std::cout << "Failed with unexpected exception: " << e.what() << std::endl; | |
33 | return 1; | |
34 | } | |
35 | #endif | |
36 | return boost::report_errors(); | |
37 | } |