We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d16ed0 commit 2d684efCopy full SHA for 2d684ef
googlemock/include/gmock/gmock-matchers.h
@@ -5606,8 +5606,8 @@ PolymorphicMatcher<internal::ExceptionMatcherImpl<Err>> ThrowsMessage(
5606
5607
#define GMOCK_INTERNAL_MATCHER_ARGS_USAGE(args) \
5608
GMOCK_PP_TAIL(GMOCK_PP_FOR_EACH(GMOCK_INTERNAL_MATCHER_ARG_USAGE, , args))
5609
-#define GMOCK_INTERNAL_MATCHER_ARG_USAGE(i, data_unused, arg_unused) \
5610
- , gmock_p##i
+#define GMOCK_INTERNAL_MATCHER_ARG_USAGE(i, data_unused, arg) \
+ , ::std::forward<arg##_type>(gmock_p##i)
5611
5612
// To prevent ADL on certain functions we put them on a separate namespace.
5613
using namespace no_adl; // NOLINT
0 commit comments