Cleanup CI config

This commit is contained in:
Victor Zverovich
2026-04-02 14:45:48 -07:00
parent cdb8dc76d9
commit 8572a24603
2 changed files with 18 additions and 22 deletions
+9 -2
View File
@@ -710,10 +710,17 @@ struct codec_mask {
int except = 0;
};
// A named functor instead of a lambda to avoid -Wsubobject-linkage: a lambda
// gives the filter_view type internal linkage, which propagates to the
// formatter base class via format_as.
struct not_equal {
int value;
bool operator()(int c) const { return c != value; }
};
auto format_as(codec_mask mask) {
// Careful not to capture param by reference here, it will dangle.
return codec_mask::codecs |
std::views::filter([mask](auto c) { return c != mask.except; });
std::views::filter(not_equal{mask.except});
}
} // namespace views_filter_view_test