diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 687da5ccc..b0a6bdefe 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -427,21 +427,20 @@ class [[nodiscard]] OnceAction final { // via StdFunctionAdaptor. template using IsDirectlyCompatible = internal::conjunction< - // It must be possible to capture the callable in StdFunctionAdaptor. - std::is_constructible::type, Callable>, // The callable must be compatible with our signature. - internal::is_callable_r::type, - Args...>>; + internal::is_callable_r, Args...>, + // It must be possible to capture the callable in StdFunctionAdaptor. + std::is_constructible, Callable>>; // True iff we can use the given callable type via StdFunctionAdaptor once we // ignore incoming arguments. template using IsCompatibleAfterIgnoringArguments = internal::conjunction< - // It must be possible to capture the callable in a lambda. - std::is_constructible::type, Callable>, // The callable must be invocable with zero arguments, returning something // convertible to Result. - internal::is_callable_r::type>>; + internal::is_callable_r>, + // It must be possible to capture the callable in a lambda. + std::is_constructible, Callable>>; public: // Construct from a callable that is directly compatible with our mocked