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

Commit 1c6fe002 authored by AdityaK's avatar AdityaK Committed by Aditya Kumar
Browse files

Fix visitor

```
external/libcxx/include/variant:587:19: error: static assertion failed due to requirement 'is_invocable_v<(anonymous namespace)::Visitor<(lambda at external/libchrome-gestures/src/activity_log.cc:310:7), (lambda at external/libchrome-gestures/src/activity_log.cc:314:7), (lambda at external/libchrome-gestures/src/activity_log.cc:318:7), (lambda at external/libchrome-gestures/src/activity_log.cc:322:7), (lambda at external/libchrome-gestures/src/activity_log.cc:326:7)>, const unsigned char &>': `std::visit` requires the visitor to be exhaustive.
  587 |     static_assert(is_invocable_v<_Visitor, _Values...>,

```

Change-Id: Idc9df90d9ca653c241e42818c5a80857ed945730
parent 97c05f17
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ std::list<NotifyArgs>& operator+=(std::list<NotifyArgs>& keep, std::list<NotifyA

// Helper to std::visit with lambdas.
template <typename... V>
struct Visitor : V... {};
struct Visitor : V... { using V::operator()...; };
// explicit deduction guide (not needed as of C++20)
template <typename... V>
Visitor(V...) -> Visitor<V...>;
+1 −1
Original line number Diff line number Diff line
@@ -233,7 +233,7 @@ NotifyPointerCaptureChangedArgs::NotifyPointerCaptureChangedArgs(

// Helper to std::visit with lambdas.
template <typename... V>
struct Visitor : V... {};
struct Visitor : V... { using V::operator()...; };
// explicit deduction guide (not needed as of C++20)
template <typename... V>
Visitor(V...) -> Visitor<V...>;
+1 −1
Original line number Diff line number Diff line
@@ -239,7 +239,7 @@ namespace {

// Helper to std::visit with lambdas.
template <typename... V>
struct Visitor : V... {};
struct Visitor : V... { using V::operator()...; };
// explicit deduction guide (not needed as of C++20)
template <typename... V>
Visitor(V...) -> Visitor<V...>;