diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 94552cea2..4a3904f64 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -427,21 +427,21 @@ 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...>>; + Args...>, + // It must be possible to capture the callable in StdFunctionAdaptor. + std::is_constructible::type, 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::type>, + // It must be possible to capture the callable in a lambda. + std::is_constructible::type, Callable>>; public: // Construct from a callable that is directly compatible with our mocked