From 4f6281e52d3183ae53510d59474f6e4708da40c3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Aug 2022 13:06:56 -0400 Subject: Replace boost with standard C++17 facilities --- src/handle_event.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/handle_event.cpp') diff --git a/src/handle_event.cpp b/src/handle_event.cpp index 710c4af..d75c42d 100644 --- a/src/handle_event.cpp +++ b/src/handle_event.cpp @@ -18,7 +18,7 @@ PATCHAGE_DISABLE_FMT_WARNINGS #include PATCHAGE_RESTORE_WARNINGS -#include +#include namespace patchage { @@ -27,8 +27,6 @@ namespace { class EventHandler { public: - using result_type = void; ///< For boost::apply_visitor - explicit EventHandler(Configuration& conf, Metadata& metadata, Canvas& canvas, @@ -145,7 +143,7 @@ handle_event(Configuration& conf, const Event& event) { EventHandler handler{conf, metadata, canvas, log}; - boost::apply_visitor(handler, event); + std::visit(handler, event); } } // namespace patchage -- cgit v1.2.1