fix for disable ability to stream user defined types if not at least c++11

This commit is contained in:
Nicolas Fauvet 2017-01-19 14:12:29 +01:00
parent d747cc1c3d
commit 4805b21381

View File

@ -113,11 +113,11 @@ std::ostream &operator<<(std::ostream &os, EmptyTest) {
#if __cplusplus >= 201103L
struct UserDefinedTest { int i = 42; };
#endif
std::ostream &operator<<(std::ostream &os, const UserDefinedTest &u) {
return os << u.i;
}
#endif
TEST(OStreamTest, EmptyCustomOutput) {
EXPECT_EQ("", fmt::format("{}", EmptyTest()));