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/cpp_dec_float.hpp>
11 #include "test_mixed.hpp"
15 #ifndef BOOST_NO_EXCEPTIONS
19 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_on> big_type1;
20 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_on> small_type1;
21 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100>, boost::multiprecision::et_off> big_type2;
22 typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<50>, boost::multiprecision::et_off> small_type2;
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
30 catch (const std::exception& e)
32 std::cout << "Failed with unexpected exception: " << e.what() << std::endl;
36 return boost::report_errors();