summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYi Kong <yikong@google.com>2023-12-13 16:52:31 +0900
committerYi Kong <yikong@google.com>2023-12-13 16:53:56 +0900
commit2e9e4ba21673c033adfee224e6306d51b1ffb2fd (patch)
treea6782759dc028b324d841886d42df6e6d8ceb8b6
parent0cd7e5f6935676c71d6bdc9785bd0436621dc942 (diff)
downloadnative-2e9e4ba21673c033adfee224e6306d51b1ffb2fd.tar.gz
Fix visitor
Similar fix to https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/4996084 Bug: 308807804 Test: m inputflinger_tests Change-Id: I84d0fdf2339cbdc0dead03d56f939d6808792213
-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...>;