Much improved concept docs.

Regenerate docs.
Make some cpp_int specific routines generic instead.
Changed divide-by-zero to be an overflow error.

[SVN r79952]
This commit is contained in:
John Maddock
2012-08-10 08:37:37 +00:00
parent 6f317ee809
commit 6fe80f07de
16 changed files with 3254 additions and 1259 deletions

View File

@@ -245,7 +245,7 @@ void test_integer_ops(const boost::mpl::int_<boost::multiprecision::number_kind_
//
if(!is_boost_rational(a))
{
BOOST_CHECK_THROW(Real(a / 0), std::runtime_error);
BOOST_CHECK_THROW(Real(a / 0), std::overflow_error);
BOOST_CHECK_THROW(Real("3.14"), std::runtime_error);
b = "2/3";
BOOST_CHECK_EQUAL(a, b);
@@ -557,7 +557,7 @@ void test_integer_ops(const boost::mpl::int_<boost::multiprecision::number_kind_
//
BOOST_CHECK_THROW(Real("3.14"), std::runtime_error);
BOOST_CHECK_THROW(Real("3L"), std::runtime_error);
BOOST_CHECK_THROW(Real(Real(20) / 0u), std::runtime_error);
BOOST_CHECK_THROW(Real(Real(20) / 0u), std::overflow_error);
}
template <class Real, class T>
@@ -636,7 +636,7 @@ void test_float_ops(const boost::mpl::int_<boost::multiprecision::number_kind_fl
}
else
{
BOOST_CHECK_THROW(Real(Real(20) / 0u), std::runtime_error);
BOOST_CHECK_THROW(Real(Real(20) / 0u), std::overflow_error);
}
}
}