diff --git a/include/experimental/__p0009_bits/utility.hpp b/include/experimental/__p0009_bits/utility.hpp index f7f39d60..a078eeb0 100644 --- a/include/experimental/__p0009_bits/utility.hpp +++ b/include/experimental/__p0009_bits/utility.hpp @@ -115,7 +115,7 @@ struct tuple_idx_matcher { using type = tuple_member; template MDSPAN_FUNCTION - constexpr auto operator | (Other v) const { + constexpr auto operator | ([[maybe_unused]] Other v) const { if constexpr (Idx == SearchIdx) { return *this; } else { return v; } }