mirror of
https://git.mirrors.martin98.com/https://github.com/google/googletest.git
synced 2025-08-14 03:35:56 +08: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:
parent
3af834740f
commit
e7b26b7246
@ -835,6 +835,10 @@ class Action<R(Args...)> {
|
|||||||
Result operator()(const InArgs&...) const {
|
Result operator()(const InArgs&...) const {
|
||||||
return function_impl();
|
return function_impl();
|
||||||
}
|
}
|
||||||
|
template <typename... InArgs>
|
||||||
|
Result operator()(const InArgs&...) {
|
||||||
|
return function_impl();
|
||||||
|
}
|
||||||
|
|
||||||
FunctionImpl function_impl;
|
FunctionImpl function_impl;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user