Skip to content

Commit

Permalink
C++11 fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rollbear committed Sep 28, 2024
1 parent 86ab098 commit d59c2df
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions include/trompeloeil/matcher/set_predicate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ struct any_of_printer
{
os << " to be any of {";
const char* sep = " ";
const auto print = [&](const auto& v) {
os << std::exchange(sep, ", ") << v;
return 0;
};
trompeloeil::ignore(std::initializer_list<int>{
(print(compare))...
((os << std::exchange(sep, ", ") << compare),0)...
});
os << " }";
}
Expand Down Expand Up @@ -89,12 +85,8 @@ struct none_of_printer
{
os << " to be none of {";
const char* sep = " ";
const auto print = [&](const auto& v) {
os << std::exchange(sep, ", ") << v;
return 0;
};
trompeloeil::ignore(std::initializer_list<int>{
(print(compare))...
((os << std::exchange(sep, ", ") << compare),0)...
});
os << " }";
}
Expand Down Expand Up @@ -139,12 +131,8 @@ struct all_of_printer
{
os << " to be all of {";
const char* sep = " ";
const auto print = [&](const auto& v) {
os << std::exchange(sep, ", ") << v;
return 0;
};
trompeloeil::ignore(std::initializer_list<int>{
(print(compare))...
((os << std::exchange(sep, ", ") << compare),0)...
});
os << " }";
}
Expand Down

0 comments on commit d59c2df

Please sign in to comment.