Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -970,7 +970,8 @@ struct InvokeMethodWithoutArgsAction {
Class* const obj_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>
ReturnType operator()(const Args&...) const {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment