summaryrefslogtreecommitdiffstats
path: root/src/Setting.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-22 13:06:56 -0400
committerDavid Robillard <d@drobilla.net>2022-08-22 13:07:38 -0400
commit4f6281e52d3183ae53510d59474f6e4708da40c3 (patch)
treee8b8386b865ca57c6999946213f3b1ccba5de27d /src/Setting.hpp
parent9c0d642a5397f418ba5c4882cc6b18e903af068f (diff)
downloadpatchage-4f6281e52d3183ae53510d59474f6e4708da40c3.tar.gz
patchage-4f6281e52d3183ae53510d59474f6e4708da40c3.tar.bz2
patchage-4f6281e52d3183ae53510d59474f6e4708da40c3.zip
Replace boost with standard C++17 facilities
Diffstat (limited to 'src/Setting.hpp')
-rw-r--r--src/Setting.hpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/Setting.hpp b/src/Setting.hpp
index 1e1aa6f..4bcfc81 100644
--- a/src/Setting.hpp
+++ b/src/Setting.hpp
@@ -7,9 +7,8 @@
#include "Coord.hpp"
#include "PortType.hpp"
-#include <boost/variant/variant.hpp>
-
#include <cstdint>
+#include <variant>
namespace patchage {
namespace setting {
@@ -70,19 +69,19 @@ struct Zoom {
} // namespace setting
/// A configuration setting
-using Setting = boost::variant<setting::AlsaAttached,
- setting::FontSize,
- setting::HumanNames,
- setting::JackAttached,
- setting::MessagesHeight,
- setting::MessagesVisible,
- setting::PortColor,
- setting::SortedPorts,
- setting::SprungLayout,
- setting::ToolbarVisible,
- setting::WindowLocation,
- setting::WindowSize,
- setting::Zoom>;
+using Setting = std::variant<setting::AlsaAttached,
+ setting::FontSize,
+ setting::HumanNames,
+ setting::JackAttached,
+ setting::MessagesHeight,
+ setting::MessagesVisible,
+ setting::PortColor,
+ setting::SortedPorts,
+ setting::SprungLayout,
+ setting::ToolbarVisible,
+ setting::WindowLocation,
+ setting::WindowSize,
+ setting::Zoom>;
} // namespace patchage