diff options
author | Abseil Team <absl-team@google.com> | 2018-10-16 19:29:37 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-10-18 15:32:16 (GMT) |
commit | 29b47e45cfd0b30f8e7efd93e7ea34c8343012b3 (patch) | |
tree | 49018da5c8f0a81eb644dbbfcf0af5ed565b7063 /googletest/include/gtest/internal/gtest-port.h | |
parent | a651a4d44e65b749467fa3dddf93819a22f0cc4a (diff) | |
download | googletest-29b47e45cfd0b30f8e7efd93e7ea34c8343012b3.zip googletest-29b47e45cfd0b30f8e7efd93e7ea34c8343012b3.tar.gz googletest-29b47e45cfd0b30f8e7efd93e7ea34c8343012b3.tar.bz2 |
Googletest export
C++11 code cleanup.
PiperOrigin-RevId: 217364243
Diffstat (limited to 'googletest/include/gtest/internal/gtest-port.h')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index 64bf67f..36bd405 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -203,11 +203,6 @@ // GTEST_INTENTIONAL_CONST_COND_POP_ - finish code section where MSVC C4127 // is suppressed. // -// C++11 feature wrappers: -// -// testing::internal::forward - portability wrapper for std::forward. -// testing::internal::move - portability wrapper for std::move. -// // Synchronization: // Mutex, MutexLock, ThreadLocal, GetThreadCount() // - synchronization primitives. @@ -1257,28 +1252,6 @@ struct ConstRef<T&> { typedef T& type; }; #define GTEST_REFERENCE_TO_CONST_(T) \ typename ::testing::internal::ConstRef<T>::type -#if GTEST_HAS_STD_MOVE_ -using std::forward; -using std::move; - -template <typename T> -struct RvalueRef { - typedef T&& type; -}; -#else // GTEST_HAS_STD_MOVE_ -template <typename T> -const T& move(const T& t) { - return t; -} -template <typename T> -GTEST_ADD_REFERENCE_(T) forward(GTEST_ADD_REFERENCE_(T) t) { return t; } - -template <typename T> -struct RvalueRef { - typedef const T& type; -}; -#endif // GTEST_HAS_STD_MOVE_ - // INTERNAL IMPLEMENTATION - DO NOT USE IN USER CODE. // // Use ImplicitCast_ as a safe version of static_cast for upcasting in |