mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 05:04:27 +02:00
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>
|
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) {
|
||||||
|
Reference in New Issue
Block a user