fix: unused argument in iroot_impl compile error fixed
This commit is contained in:
1 parent
22eb0d08f1
commit
112cce1c65
1 file changed
+1
-1
@@ -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