forked from mpusz/mp-units
fix: unused argument in iroot_impl
compile error fixed
This commit is contained in:
@@ -73,7 +73,7 @@ template<std::intmax_t N>
|
||||
requires gt_zero<N>
|
||||
[[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) {
|
||||
return std::sqrt(x);
|
||||
} else if constexpr (N == 3) {
|
||||
|
Reference in New Issue
Block a user