Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e9e4ba2 authored by Yi Kong's avatar Yi Kong
Browse files

Fix visitor

Similar fix to
https://chromium-review.googlesource.com/c/chromiumos/platform/gestures/+/4996084

Bug: 308807804
Test: m inputflinger_tests
Change-Id: I84d0fdf2339cbdc0dead03d56f939d6808792213
parent 0cd7e5f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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...>;