summaryrefslogtreecommitdiffstats
path: root/googletest/include/gtest/internal/gtest-internal.h
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-02-13 20:25:57 (GMT)
committerGennadiy Civil <misterg@google.com>2018-02-13 20:25:57 (GMT)
commita3e322b24f9a9b728004823cd43c0405ffe8bd7a (patch)
tree3b6053bd3cb619e345daf8e701cc59d09e9994d6 /googletest/include/gtest/internal/gtest-internal.h
parent68e4f076e5e1e4c307fb0d3da84f146e85634c1c (diff)
downloadgoogletest-a3e322b24f9a9b728004823cd43c0405ffe8bd7a.zip
googletest-a3e322b24f9a9b728004823cd43c0405ffe8bd7a.tar.gz
googletest-a3e322b24f9a9b728004823cd43c0405ffe8bd7a.tar.bz2
cleanup, merges
Diffstat (limited to 'googletest/include/gtest/internal/gtest-internal.h')
-rw-r--r--googletest/include/gtest/internal/gtest-internal.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/googletest/include/gtest/internal/gtest-internal.h b/googletest/include/gtest/internal/gtest-internal.h
index 843058f..a8a9a8c 100644
--- a/googletest/include/gtest/internal/gtest-internal.h
+++ b/googletest/include/gtest/internal/gtest-internal.h
@@ -803,31 +803,6 @@ struct RemoveConst<T[N]> {
#define GTEST_REMOVE_REFERENCE_AND_CONST_(T) \
GTEST_REMOVE_CONST_(GTEST_REMOVE_REFERENCE_(T))
-// Adds reference to a type if it is not a reference type,
-// otherwise leaves it unchanged. This is the same as
-// tr1::add_reference, which is not widely available yet.
-template <typename T>
-struct AddReference { typedef T& type; }; // NOLINT
-template <typename T>
-struct AddReference<T&> { typedef T& type; }; // NOLINT
-
-// A handy wrapper around AddReference that works when the argument T
-// depends on template parameters.
-#define GTEST_ADD_REFERENCE_(T) \
- typename ::testing::internal::AddReference<T>::type
-
-// Adds a reference to const on top of T as necessary. For example,
-// it transforms
-//
-// char ==> const char&
-// const char ==> const char&
-// char& ==> const char&
-// const char& ==> const char&
-//
-// The argument T must depend on some template parameters.
-#define GTEST_REFERENCE_TO_CONST_(T) \
- GTEST_ADD_REFERENCE_(const GTEST_REMOVE_REFERENCE_(T))
-
// ImplicitlyConvertible<From, To>::value is a compile-time bool
// constant that's true iff type From can be implicitly converted to
// type To.