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

Commit 004bccd9 authored by Aditya Kumar's avatar Aditya Kumar Committed by Gerrit Code Review
Browse files

Merge "Fix visitor" into main

parents 34115507 1c6fe002
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...>;