Commit 61f010d7 authored by Abseil Team's avatar Abseil Team Committed by Andy Getz
Browse files

Googletest export

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

PiperOrigin-RevId: 303783600
parent dc82a334
...@@ -970,7 +970,8 @@ struct InvokeMethodWithoutArgsAction { ...@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment