Skip to content

Commit e7b26b7

Browse files
Abseil Teamcopybara-github
authored andcommitted
Add a non-'const' overload for the function invoked by the IgnoreArgs action wrapper.
PiperOrigin-RevId: 738865907 Change-Id: Ia43b297692ddca681bf29fa7547a5a4da330e51a
1 parent 3af8347 commit e7b26b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

googlemock/include/gmock/gmock-actions.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,10 @@ class Action<R(Args...)> {
835835
Result operator()(const InArgs&...) const {
836836
return function_impl();
837837
}
838+
template <typename... InArgs>
839+
Result operator()(const InArgs&...) {
840+
return function_impl();
841+
}
838842

839843
FunctionImpl function_impl;
840844
};

0 commit comments

Comments
 (0)