Fix build on gcc 4.4

This commit is contained in:
Victor Zverovich
2018-10-24 10:52:02 -07:00
parent 9d0c9c4bb1
commit 20c708bf6d
16 changed files with 71 additions and 63 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ std::string read(fmt::file &f, std::size_t count);
template <typename Mock>
struct ScopedMock : testing::StrictMock<Mock> {
ScopedMock() { Mock::instance = this; }
~ScopedMock() { Mock::instance = nullptr; }
~ScopedMock() { Mock::instance = FMT_NULL; }
};
#endif // FMT_GTEST_EXTRA_H_