Updated boost multiprecision, and disabled deprecated declarations warning
This commit is contained in:
parent
9f739ada6a
commit
6bc7069099
31 changed files with 3656 additions and 83 deletions
|
|
@ -2843,7 +2843,7 @@ template <class tag, class A1, class A2, class A3, class A4, class Policy>
|
|||
inline BOOST_MP_CXX14_CONSTEXPR typename detail::expression<tag, A1, A2, A3, A4>::result_type trunc(const detail::expression<tag, A1, A2, A3, A4>& v, const Policy& pol)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(trunc(number_type(v), pol));
|
||||
return trunc(number_type(v), pol);
|
||||
}
|
||||
|
||||
template <class Backend, expression_template_option ExpressionTemplates, class Policy>
|
||||
|
|
@ -2943,7 +2943,7 @@ template <class tag, class A1, class A2, class A3, class A4, class Policy>
|
|||
inline BOOST_MP_CXX14_CONSTEXPR typename detail::expression<tag, A1, A2, A3, A4>::result_type round(const detail::expression<tag, A1, A2, A3, A4>& v, const Policy& pol)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(round(static_cast<number_type>(v), pol));
|
||||
return round(static_cast<number_type>(v), pol);
|
||||
}
|
||||
template <class T, expression_template_option ExpressionTemplates, class Policy>
|
||||
inline BOOST_MP_CXX14_CONSTEXPR number<T, ExpressionTemplates> round(const number<T, ExpressionTemplates>& v, const Policy&)
|
||||
|
|
@ -3057,7 +3057,7 @@ inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<typename
|
|||
frexp(const detail::expression<tag, A1, A2, A3, A4>& v, short* pint)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(frexp(static_cast<number_type>(v), pint));
|
||||
return frexp(static_cast<number_type>(v), pint);
|
||||
}
|
||||
template <class T, expression_template_option ExpressionTemplates>
|
||||
inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<T>::value == number_kind_floating_point, number<T, ExpressionTemplates> >::type frexp(const number<T, ExpressionTemplates>& v, int* pint)
|
||||
|
|
@ -3073,7 +3073,7 @@ inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<typename
|
|||
frexp(const detail::expression<tag, A1, A2, A3, A4>& v, int* pint)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(frexp(static_cast<number_type>(v), pint));
|
||||
return frexp(static_cast<number_type>(v), pint);
|
||||
}
|
||||
template <class T, expression_template_option ExpressionTemplates>
|
||||
inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<T>::value == number_kind_floating_point, number<T, ExpressionTemplates> >::type frexp(const number<T, ExpressionTemplates>& v, long* pint)
|
||||
|
|
@ -3089,7 +3089,7 @@ inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<typename
|
|||
frexp(const detail::expression<tag, A1, A2, A3, A4>& v, long* pint)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(frexp(static_cast<number_type>(v), pint));
|
||||
return frexp(static_cast<number_type>(v), pint);
|
||||
}
|
||||
template <class T, expression_template_option ExpressionTemplates>
|
||||
inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<T>::value == number_kind_floating_point, number<T, ExpressionTemplates> >::type frexp(const number<T, ExpressionTemplates>& v, long long* pint)
|
||||
|
|
@ -3105,7 +3105,7 @@ inline BOOST_MP_CXX14_CONSTEXPR typename std::enable_if<number_category<typename
|
|||
frexp(const detail::expression<tag, A1, A2, A3, A4>& v, long long* pint)
|
||||
{
|
||||
using number_type = typename detail::expression<tag, A1, A2, A3, A4>::result_type;
|
||||
return std::move(frexp(static_cast<number_type>(v), pint));
|
||||
return frexp(static_cast<number_type>(v), pint);
|
||||
}
|
||||
//
|
||||
// modf does not return an expression template since we require the
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ std::string convert_to_string(Backend b, std::streamsize digits, std::ios_base::
|
|||
//
|
||||
// Extract the digits one at a time:
|
||||
//
|
||||
for (unsigned i = 0; i < digits; ++i)
|
||||
for (std::streamsize i = 0; i < digits; ++i)
|
||||
{
|
||||
eval_floor(digit, t);
|
||||
eval_convert_to(&cdigit, digit);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
// Copyright Christopher Kormanyos 2002 - 2013.
|
||||
// Copyright 2011 - 2013 John Maddock.
|
||||
// Copyright 2011 - 2025 John Maddock.
|
||||
// Copyright Christopher Kormanyos 2002 - 2025.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
|
@ -132,7 +132,6 @@ void hyp0F0(T& H0F0, const T& x)
|
|||
|
||||
BOOST_MP_ASSERT(&H0F0 != &x);
|
||||
long tol = boost::multiprecision::detail::digits2<number<T, et_on> >::value();
|
||||
T t;
|
||||
|
||||
T x_pow_n_div_n_fact(x);
|
||||
|
||||
|
|
@ -192,7 +191,7 @@ void hyp1F0(T& H1F0, const T& a, const T& x)
|
|||
lim.negate();
|
||||
|
||||
si_type n;
|
||||
T term, part;
|
||||
T term;
|
||||
|
||||
const si_type series_limit =
|
||||
boost::multiprecision::detail::digits2<number<T, et_on> >::value() < 100
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ inline constexpr unsigned current_precision_of(const expression<tag, Arg1, Arg2,
|
|||
#endif
|
||||
|
||||
template <class R, bool = boost::multiprecision::detail::is_variable_precision<R>::value>
|
||||
struct scoped_default_precision
|
||||
struct BOOST_ATTRIBUTE_UNUSED scoped_default_precision
|
||||
{
|
||||
template <class T>
|
||||
constexpr scoped_default_precision(const T&) {}
|
||||
|
|
|
|||
|
|
@ -144,9 +144,13 @@ namespace boost { namespace multiprecision {
|
|||
#define BOOST_MP_NO_CONSTEXPR_DETECTION
|
||||
#endif
|
||||
|
||||
#ifdef __has_attribute
|
||||
# if __has_attribute(fallthrough)
|
||||
# define BOOST_MP_FALLTHROUGH [[fallthrough]]
|
||||
// Compilers should ignore unknown attributes,
|
||||
// but this doesn't stop them from issuing warnings
|
||||
#if (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || (defined(__cplusplus) && __cplusplus >= 201703L)
|
||||
# ifdef __has_attribute
|
||||
# if __has_attribute(fallthrough)
|
||||
# define BOOST_MP_FALLTHROUGH [[fallthrough]]
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue