Googletest export

Revert ac3c2a8d04 -- it seems to break some gcc users (#3384)

PiperOrigin-RevId: 370834917
This commit is contained in:
Abseil Team
2021-04-28 02:04:44 -04:00
committed by Derek Mauro
parent 065a0c8140
commit f5e592d8ee
2 changed files with 0 additions and 72 deletions

View File

@@ -113,11 +113,6 @@
#include "gtest/internal/gtest-internal.h"
#include "gtest/internal/gtest-port.h"
#if GTEST_HAS_RTTI
#include <typeindex>
#include <typeinfo>
#endif // GTEST_HAS_RTTI
namespace testing {
// Definitions in the internal* namespaces are subject to change without notice.
@@ -672,18 +667,6 @@ void PrintTo(const ::std::pair<T1, T2>& value, ::std::ostream* os) {
*os << ')';
}
#if GTEST_HAS_RTTI
inline void PrintTo(const ::std::type_info& value, ::std::ostream* os) {
internal::PrintTo<::std::type_info>(value, os);
*os << " (\"" << value.name() << "\")";
}
inline void PrintTo(const ::std::type_index& value, ::std::ostream* os) {
internal::PrintTo<::std::type_index>(value, os);
*os << " (\"" << value.name() << "\")";
}
#endif // GTEST_HAS_RTTI
// Implements printing a non-reference type T by letting the compiler
// pick the right overload of PrintTo() for T.
template <typename T>