Cleanup ostream interface

This commit is contained in:
Victor Zverovich committed 2021-09-03 10:35:19 -07:00
1 parent 20931baf1d
commit 5681563898
2 files changed
+31 -42

No files matched your search

+2 -1
View File
@@ -258,7 +258,8 @@ std::ostream& operator<<(std::ostream& os, streamable_and_convertible_to_bool) {
}
TEST(ostream_test, format_convertible_to_bool) {
EXPECT_EQ("foo", fmt::format("{}", streamable_and_convertible_to_bool()));
// operator<< is intentionally not used because of potential ODR violations.
EXPECT_EQ(fmt::format("{}", streamable_and_convertible_to_bool()), "true");
}
struct copyfmt_test {};