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/Patchage.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/Patchage.cpp')
-rw-r--r-- | src/Patchage.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp index 96af631..1f3d706 100644 --- a/src/Patchage.cpp +++ b/src/Patchage.cpp @@ -39,9 +39,6 @@ PATCHAGE_DISABLE_FMT_WARNINGS #include <fmt/core.h> PATCHAGE_RESTORE_WARNINGS -#include <boost/optional/optional.hpp> -#include <boost/variant/apply_visitor.hpp> -#include <boost/variant/variant.hpp> #include <glib-object.h> #include <glib.h> #include <glibmm/fileutils.h> @@ -95,7 +92,9 @@ PATCHAGE_RESTORE_WARNINGS #include <cstdlib> #include <functional> #include <map> +#include <optional> #include <utility> +#include <variant> #ifdef PATCHAGE_GTK_OSX @@ -769,7 +768,7 @@ Patchage::process_events() void Patchage::on_conf_change(const Setting& setting) { - boost::apply_visitor(*this, setting); + std::visit(*this, setting); } void |