Googletest export

Do not use std::result_of as it was removed in C++20.

PiperOrigin-RevId: 303783600
This commit is contained in:
Abseil Team 2020-03-30 14:26:22 -04:00 committed by Andy Getz
parent dc82a33473
commit 61f010d703

View File

@ -970,7 +970,8 @@ struct InvokeMethodWithoutArgsAction {
Class* const obj_ptr; Class* const obj_ptr;
const MethodPtr method_ptr; const MethodPtr method_ptr;
using ReturnType = typename std::result_of<MethodPtr(Class*)>::type; using ReturnType =
decltype((std::declval<Class*>()->*std::declval<MethodPtr>())());
template <typename... Args> template <typename... Args>
ReturnType operator()(const Args&...) const { ReturnType operator()(const Args&...) const {