operator_fail_01.cpp 476 B

12345678910111213141516
  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 http://www.boost.org/LICENSE_1_0.txt)
  5. #include <boost/multiprecision/cpp_dec_float.hpp>
  6. using namespace boost::multiprecision;
  7. int main()
  8. {
  9. number<cpp_dec_float<50>, et_on> a(2);
  10. number<cpp_dec_float<50>, et_off> b(2);
  11. a = a + b;
  12. }