diff options
Diffstat (limited to 'src/handle_event.cpp')
-rw-r--r-- | src/handle_event.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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 <fmt/core.h> PATCHAGE_RESTORE_WARNINGS -#include <boost/variant/apply_visitor.hpp> +#include <variant> 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 |