diff options
author | Derek Mauro <dmauro@google.com> | 2023-03-28 14:02:23 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-03-28 14:03:07 (GMT) |
commit | 3656c2713e08bd5dadae740f71ef37a92336027b (patch) | |
tree | c211de2ca799ce8693a6137b8c01fc2e2fa4bb4a /googlemock/include/gmock | |
parent | 13b1900717fe93238d615691b6d0d951b0e154c4 (diff) | |
download | googletest-3656c2713e08bd5dadae740f71ef37a92336027b.zip googletest-3656c2713e08bd5dadae740f71ef37a92336027b.tar.gz googletest-3656c2713e08bd5dadae740f71ef37a92336027b.tar.bz2 |
Fix redundant redeclaration warning
Fixes #4200
PiperOrigin-RevId: 520017094
Change-Id: Id707a1c0489edde083771ccd412d7035612474dc
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r-- | googlemock/include/gmock/internal/gmock-internal-utils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index b5283ed..d344438 100644 --- a/googlemock/include/gmock/internal/gmock-internal-utils.h +++ b/googlemock/include/gmock/internal/gmock-internal-utils.h @@ -465,8 +465,10 @@ struct Function<R(Args...)> { using MakeResultIgnoredValue = IgnoredValue(Args...); }; +#ifdef GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL template <typename R, typename... Args> constexpr size_t Function<R(Args...)>::ArgumentCount; +#endif // Workaround for MSVC error C2039: 'type': is not a member of 'std' // when std::tuple_element is used. |