Cleanup ostream interface

This commit is contained in:
Victor Zverovich
2021-09-03 10:35:19 -07:00
parent 20931baf1d
commit 5681563898
2 changed files with 31 additions and 42 deletions
+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 {};