Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
61f010d7
Commit
61f010d7
authored
Mar 30, 2020
by
Abseil Team
Committed by
Andy Getz
Mar 31, 2020
Browse files
Googletest export
Do not use std::result_of as it was removed in C++20. PiperOrigin-RevId: 303783600
parent
dc82a334
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
googlemock/include/gmock/gmock-actions.h
googlemock/include/gmock/gmock-actions.h
+2
-1
No files found.
googlemock/include/gmock/gmock-actions.h
View file @
61f010d7
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment