0
0
mirror of https://github.com/google/googletest.git synced 2025-04-02 18:00:25 +00:00

Add a non-'const' overload for the function invoked by the IgnoreArgs action wrapper.

PiperOrigin-RevId: 738865907
Change-Id: Ia43b297692ddca681bf29fa7547a5a4da330e51a
This commit is contained in:
Abseil Team 2025-03-20 10:55:26 -07:00 committed by Copybara-Service
parent 3af834740f
commit e7b26b7246

View File

@ -835,6 +835,10 @@ class Action<R(Args...)> {
Result operator()(const InArgs&...) const {
return function_impl();
}
template <typename... InArgs>
Result operator()(const InArgs&...) {
return function_impl();
}
FunctionImpl function_impl;
};