mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-20 14:52:24 +00:00
Make math::tools::digits noexcept when math version is.
This commit is contained in:
@@ -1145,11 +1145,17 @@ namespace tools{
|
||||
|
||||
template <>
|
||||
inline int digits<boost::multiprecision::mpfi_float>()
|
||||
#ifdef BOOST_MATH_NOEXCEPT
|
||||
BOOST_NOEXCEPT
|
||||
#endif
|
||||
{
|
||||
return boost::multiprecision::backends::detail::get_default_precision();
|
||||
}
|
||||
template <>
|
||||
inline int digits<boost::multiprecision::number<boost::multiprecision::mpfi_float_backend<0>, boost::multiprecision::et_off> >()
|
||||
#ifdef BOOST_MATH_NOEXCEPT
|
||||
BOOST_NOEXCEPT
|
||||
#endif
|
||||
{
|
||||
return boost::multiprecision::backends::detail::get_default_precision();
|
||||
}
|
||||
|
||||
@@ -1455,11 +1455,17 @@ namespace tools{
|
||||
|
||||
template <>
|
||||
inline int digits<boost::multiprecision::mpfr_float>()
|
||||
#ifdef BOOST_MATH_NOEXCEPT
|
||||
BOOST_NOEXCEPT
|
||||
#endif
|
||||
{
|
||||
return boost::multiprecision::backends::detail::get_default_precision();
|
||||
}
|
||||
template <>
|
||||
inline int digits<boost::multiprecision::number<boost::multiprecision::mpfr_float_backend<0>, boost::multiprecision::et_off> >()
|
||||
#ifdef BOOST_MATH_NOEXCEPT
|
||||
BOOST_NOEXCEPT
|
||||
#endif
|
||||
{
|
||||
return boost::multiprecision::backends::detail::get_default_precision();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user