From 61f010d703b32de9bfb20ab90ece38ab2f25977f Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Mon, 30 Mar 2020 14:26:22 -0400 Subject: [PATCH] Googletest export Do not use std::result_of as it was removed in C++20. PiperOrigin-RevId: 303783600 --- googlemock/include/gmock/gmock-actions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index b4127e93..615651b3 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -970,7 +970,8 @@ struct InvokeMethodWithoutArgsAction { Class* const obj_ptr; const MethodPtr method_ptr; - using ReturnType = typename std::result_of::type; + using ReturnType = + decltype((std::declval()->*std::declval())()); template ReturnType operator()(const Args&...) const {