| 10 | constexpr auto sum = [](auto... args) { return (0 + ... + args); }; |
| 11 | |
| 12 | struct foo { |
| 13 | int a{}; |
| 14 | bool b{}; |
| 15 | |
| 16 | constexpr auto operator==(const foo& other) const { |
| 17 | return a == other.a and b == other.b; |
| 18 | } |
| 19 | |
| 20 | constexpr auto operator!=(const foo& other) const { |
| 21 | return not(*this == other); |
| 22 | } |
| 23 | |
| 24 | friend auto& operator<<(std::ostream& os, const foo& f) { |
| 25 | return (os << "foo{" << f.a << ',' << f.b << '}'); |
| 26 | } |
| 27 | }; |
| 28 | |
| 29 | int main() { |
| 30 | using boost::ut::operator""_test; |
nothing calls this directly
no outgoing calls
no test coverage detected