fix: unused argument in iroot_impl compile error fixed

This commit is contained in:
Mateusz Pusz
2020-12-29 17:29:30 +01:00
parent 22eb0d08f1
commit 112cce1c65

View File

@@ -73,7 +73,7 @@ template<std::intmax_t N>
requires gt_zero<N> requires gt_zero<N>
[[nodiscard]] std::intmax_t iroot_runtime(std::intmax_t v) noexcept [[nodiscard]] std::intmax_t iroot_runtime(std::intmax_t v) noexcept
{ {
return iroot_impl<N>(v, [](double x, double exponent) { return iroot_impl<N>(v, [](double x, [[maybe_unused]] double exponent) {
if constexpr (N == 2) { if constexpr (N == 2) {
return std::sqrt(x); return std::sqrt(x);
} else if constexpr (N == 3) { } else if constexpr (N == 3) {