Skip to content

Commit

Permalink
Use concepts and add default template type
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed May 29, 2024
1 parent 73c8f7c commit 37c5873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/decimal/detail/cmath/riemann_zeta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ constexpr auto riemann_zeta(T x) noexcept
return static_cast<T>(detail::riemann_zeta_impl(static_cast<evaluation_type>(x)));
}

BOOST_DECIMAL_EXPORT template <typename T, typename IntegralType>
BOOST_DECIMAL_EXPORT template <typename T = decimal64, typename IntegralType>
constexpr auto riemann_zeta(IntegralType n) noexcept
-> typename std::enable_if<detail::is_decimal_floating_point_v<T> && std::is_integral<IntegralType>::value, T>::type
BOOST_DECIMAL_REQUIRES_TWO_RETURN(detail::is_decimal_floating_point_v, T, detail::is_integral_v, IntegralType, T)
{
#if BOOST_DECIMAL_DEC_EVAL_METHOD == 0

Expand Down

0 comments on commit 37c5873

Please sign in to comment.