diff options
author | David Robillard <d@drobilla.net> | 2022-08-22 13:06:56 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-22 13:07:38 -0400 |
commit | 4f6281e52d3183ae53510d59474f6e4708da40c3 (patch) | |
tree | e8b8386b865ca57c6999946213f3b1ccba5de27d /src/handle_event.cpp | |
parent | 9c0d642a5397f418ba5c4882cc6b18e903af068f (diff) | |
download | patchage-4f6281e52d3183ae53510d59474f6e4708da40c3.tar.gz patchage-4f6281e52d3183ae53510d59474f6e4708da40c3.tar.bz2 patchage-4f6281e52d3183ae53510d59474f6e4708da40c3.zip |
Replace boost with standard C++17 facilities
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 |