Skip to content

Commit

Permalink
Merge pull request #2382 from kuzkry:dead-metafunction
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 265730482
  • Loading branch information
gennadiycivil committed Aug 27, 2019
2 parents 6a3d632 + 44de869 commit fdd6a1d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions googlemock/include/gmock/internal/gmock-internal-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,19 +340,6 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
template <typename T> struct remove_reference { typedef T type; }; // NOLINT
template <typename T> struct remove_reference<T&> { typedef T type; }; // NOLINT

// DecayArray<T>::type turns an array type U[N] to const U* and preserves
// other types. Useful for saving a copy of a function argument.
template <typename T> struct DecayArray { typedef T type; }; // NOLINT
template <typename T, size_t N> struct DecayArray<T[N]> {
typedef const T* type;
};
// Sometimes people use arrays whose size is not available at the use site
// (e.g. extern const char kNamePrefix[]). This specialization covers that
// case.
template <typename T> struct DecayArray<T[]> {
typedef const T* type;
};

// Disable MSVC warnings for infinite recursion, since in this case the
// the recursion is unreachable.
#ifdef _MSC_VER
Expand Down

0 comments on commit fdd6a1d

Please sign in to comment.