From 3656c2713e08bd5dadae740f71ef37a92336027b Mon Sep 17 00:00:00 2001 From: Derek Mauro Date: Tue, 28 Mar 2023 07:02:23 -0700 Subject: Fix redundant redeclaration warning Fixes #4200 PiperOrigin-RevId: 520017094 Change-Id: Id707a1c0489edde083771ccd412d7035612474dc --- googlemock/include/gmock/internal/gmock-internal-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'googlemock') diff --git a/googlemock/include/gmock/internal/gmock-internal-utils.h b/googlemock/include/gmock/internal/gmock-internal-utils.h index b5283ed0..d3444386 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 { using MakeResultIgnoredValue = IgnoredValue(Args...); }; +#ifdef GTEST_INTERNAL_NEED_REDUNDANT_CONSTEXPR_DECL template constexpr size_t Function::ArgumentCount; +#endif // Workaround for MSVC error C2039: 'type': is not a member of 'std' // when std::tuple_element is used. -- cgit v1.2.1