aboutsummaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock/gmock-actions.h
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2019-12-18 17:36:29 -0500
committerAndy Soffer <asoffer@google.com>2020-01-02 16:48:42 -0500
commitd0a521255eb59ec6ff6e30fdf53c4f05f3fd3270 (patch)
tree5f38f56049388d69fbbb17a979a2864d10759409 /googlemock/include/gmock/gmock-actions.h
parent6f1a8ffde934f4dda39cc12cd7260874c4f3e390 (diff)
downloadgoogletest-d0a521255eb59ec6ff6e30fdf53c4f05f3fd3270.tar.gz
googletest-d0a521255eb59ec6ff6e30fdf53c4f05f3fd3270.tar.bz2
googletest-d0a521255eb59ec6ff6e30fdf53c4f05f3fd3270.zip
Googletest export
Use C++11 variadic templates for InvokeArgumentAdl in gmock-generated-actions.h. Make InvokeArgumentAdl use variadic templates to generate its overloads instead of using pump.py syntax. PiperOrigin-RevId: 286267615
Diffstat (limited to 'googlemock/include/gmock/gmock-actions.h')
-rw-r--r--googlemock/include/gmock/gmock-actions.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h
index f5ac1399..4b8dcebb 100644
--- a/googlemock/include/gmock/gmock-actions.h
+++ b/googlemock/include/gmock/gmock-actions.h
@@ -1222,23 +1222,6 @@ class ActionHelper {
}
};
-namespace invoke_argument {
-
-// Appears in InvokeArgumentAdl's argument list to help avoid
-// accidental calls to user functions of the same name.
-struct AdlTag {};
-
-// InvokeArgumentAdl - a helper for InvokeArgument.
-// The basic overloads are provided here for generic functors.
-// Overloads for other custom-callables are provided in the
-// internal/custom/gmock-generated-actions.h header.
-
-template <typename R, typename F, typename... Args>
-R InvokeArgumentAdl(AdlTag, F f, Args&&... args) {
- return f(std::forward<Args>(args)...);
-}
-
-} // namespace invoke_argument
} // namespace internal
} // namespace testing