From e7b26b72461e0bfcb5a2a9c1cafd849108f834ae Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Thu, 20 Mar 2025 10:55:26 -0700 Subject: [PATCH] Add a non-'const' overload for the function invoked by the IgnoreArgs action wrapper. PiperOrigin-RevId: 738865907 Change-Id: Ia43b297692ddca681bf29fa7547a5a4da330e51a --- googlemock/include/gmock/gmock-actions.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 040e702c..5bebdaa3 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -835,6 +835,10 @@ class Action { Result operator()(const InArgs&...) const { return function_impl(); } + template + Result operator()(const InArgs&...) { + return function_impl(); + } FunctionImpl function_impl; };