diff --git a/googletest/include/gtest/gtest-matchers.h b/googletest/include/gtest/gtest-matchers.h index e34589c4..a61cef40 100644 --- a/googletest/include/gtest/gtest-matchers.h +++ b/googletest/include/gtest/gtest-matchers.h @@ -432,14 +432,6 @@ class GTEST_API_ Matcher #endif // GTEST_INTERNAL_HAS_STRING_VIEW // Prints a matcher in a human-readable format. -#if GTEST_INTERNAL_HAS_STRING_VIEW -template -std::ostream& operator<<(std::ostream& os, const Matcher& matcher) { - matcher.DescribeTo(&os); - return os; -} -#endif // GTEST_INTERNAL_HAS_STRING_VIEW - template std::ostream& operator<<(std::ostream& os, const Matcher& matcher) { matcher.DescribeTo(&os);