summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-12-13 10:54:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2023-12-13 10:54:55 +0000
commit8a867151ae352672e9388618cc8de2d7a7fb2943 (patch)
treed234fc609d4b78a727dbd4cc45265db26953be54
parent96f866c272765474f0f28b4090e15092f55796d8 (diff)
parent2e9e4ba21673c033adfee224e6306d51b1ffb2fd (diff)
downloadnative-8a867151ae352672e9388618cc8de2d7a7fb2943.tar.gz
Merge "Fix visitor" into main
-rw-r--r--services/inputflinger/tests/PointerChoreographer_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/inputflinger/tests/PointerChoreographer_test.cpp b/services/inputflinger/tests/PointerChoreographer_test.cpp
index 490cf2f55a..193b84d313 100644
--- a/services/inputflinger/tests/PointerChoreographer_test.cpp
+++ b/services/inputflinger/tests/PointerChoreographer_test.cpp
@@ -34,7 +34,9 @@ namespace {
// Helpers to std::visit with lambdas.
template <typename... V>
-struct Visitor : V... {};
+struct Visitor : V... {
+ using V::operator()...;
+};
template <typename... V>
Visitor(V...) -> Visitor<V...>;