diff options
author | drgler <daniel.kruegler@gmail.com> | 2017-08-09 17:07:22 (GMT) |
---|---|---|
committer | drgler <daniel.kruegler@gmail.com> | 2017-08-09 17:07:22 (GMT) |
commit | 484ec91c2274f7b06e6a7736060be04fe35998bd (patch) | |
tree | d6eaec3288ac944d55e0b867bf53c033198ce35f /googletest | |
parent | 4bab34d2084259cba67f3bfb51217c10d606e175 (diff) | |
download | googletest-484ec91c2274f7b06e6a7736060be04fe35998bd.zip googletest-484ec91c2274f7b06e6a7736060be04fe35998bd.tar.gz googletest-484ec91c2274f7b06e6a7736060be04fe35998bd.tar.bz2 |
Infinite Loop when calling a mock function that takes boost::filesystem::path as parameter #521: Add is_same type trait
Diffstat (limited to 'googletest')
-rw-r--r-- | googletest/include/gtest/internal/gtest-port.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/googletest/include/gtest/internal/gtest-port.h b/googletest/include/gtest/internal/gtest-port.h index f6cd3c0..7e008c0 100644 --- a/googletest/include/gtest/internal/gtest-port.h +++ b/googletest/include/gtest/internal/gtest-port.h @@ -2241,6 +2241,12 @@ template <bool bool_value> const bool bool_constant<bool_value>::value; typedef bool_constant<false> false_type; typedef bool_constant<true> true_type; +template <typename T, typename U> +struct is_same : public false_type {}; + +template <typename T> +struct is_same<T, T> : public true_type {}; + template <typename T> struct is_pointer : public false_type {}; |