test_arithmetic_cpp_dec_float_3m.cpp 774 B

12345678910111213141516171819202122
  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
  5. #define MIXED_OPS_ONLY
  6. #include <boost/multiprecision/cpp_dec_float.hpp>
  7. #include "test_arithmetic.hpp"
  8. template <unsigned D>
  9. struct related_type<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D> > >
  10. {
  11. typedef boost::multiprecision::number<boost::multiprecision::cpp_dec_float<D / 2> > type;
  12. };
  13. int main()
  14. {
  15. test<boost::multiprecision::number<boost::multiprecision::cpp_dec_float<100, long long, std::allocator<char> >, boost::multiprecision::et_on> >();
  16. return boost::report_errors();
  17. }