From c28ce4159060089cff896670188c7662caf9dd43 Mon Sep 17 00:00:00 2001 From: misterg Date: Fri, 5 Oct 2018 12:22:40 -0400 Subject: Removed pre-C++11 IsContainerTest and IteratorTraits PiperOrigin-RevId: 215916605 --- googletest/include/gtest/internal/gtest-internal.h | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h index ee0527a..0fe05e2 100644 --- a/googletest/include/gtest/internal/gtest-internal.h +++ b/googletest/include/gtest/internal/gtest-internal.h @@ -942,7 +942,6 @@ struct IsAProtocolMessage // IsContainerTest(typename C::const_iterator*) and // IsContainerTest(...) doesn't work with Visual Age C++ and Sun C++. typedef int IsContainer; -#if GTEST_LANG_CXX11 template ().begin()), class = decltype(::std::declval().end()), @@ -952,14 +951,6 @@ template -IsContainer IsContainerTest(int /* dummy */, - typename C::iterator* /* it */ = NULL, - typename C::const_iterator* /* const_it */ = NULL) { - return 0; -} -#endif // GTEST_LANG_CXX11 typedef char IsNotContainer; template @@ -1014,12 +1005,8 @@ struct IsRecursiveContainerImpl : public false_type {}; template struct IsRecursiveContainerImpl { - #if GTEST_LANG_CXX11 typedef typename IteratorTraits::value_type value_type; -#else - typedef typename IteratorTraits::value_type value_type; -#endif typedef is_same type; }; -- cgit v0.12