summaryrefslogtreecommitdiffstats
path: root/googlemock/include/gmock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-12-28 12:03:13 (GMT)
committerCopybara-Service <copybara-worker@google.com>2023-12-28 12:04:00 (GMT)
commitdddb219c3eb96d7f9200f09b0a381f016e6b4562 (patch)
treed14468aafea76be949d6d380b6cb8f735b11de82 /googlemock/include/gmock
parent96eadf659fb75ecda943bd97413c71d4c17c4f43 (diff)
downloadgoogletest-dddb219c3eb96d7f9200f09b0a381f016e6b4562.zip
googletest-dddb219c3eb96d7f9200f09b0a381f016e6b4562.tar.gz
googletest-dddb219c3eb96d7f9200f09b0a381f016e6b4562.tar.bz2
Accept move-only callables in `InvokeArguments`
PiperOrigin-RevId: 594223533 Change-Id: I491fae7d851d4e0df07fb3627416949071fec8d6
Diffstat (limited to 'googlemock/include/gmock')
-rw-r--r--googlemock/include/gmock/gmock-more-actions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/include/gmock/gmock-more-actions.h b/googlemock/include/gmock/gmock-more-actions.h
index 4030076..dd90e31 100644
--- a/googlemock/include/gmock/gmock-more-actions.h
+++ b/googlemock/include/gmock/gmock-more-actions.h
@@ -606,7 +606,7 @@ struct InvokeArgumentAction {
internal::FlatTuple<Args &&...> args_tuple(FlatTupleConstructTag{},
std::forward<Args>(args)...);
return params.Apply([&](const Params &...unpacked_params) {
- auto &&callable = args_tuple.template Get<index>();
+ auto &&callable = std::move(args_tuple.template Get<index>());
return internal::InvokeArgument(
std::forward<decltype(callable)>(callable), unpacked_params...);
});