Skip to content

Commit

Permalink
Fix false warning on some compilers for unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
crtrott committed Dec 17, 2024
1 parent cb3bd42 commit aa4ed0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/experimental/__p0009_bits/utility.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct tuple_idx_matcher {
using type = tuple_member<T, Idx>;
template<class Other>
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; }
}
Expand Down

0 comments on commit aa4ed0e

Please sign in to comment.