diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Configuration.hpp | 4 | ||||
-rw-r--r-- | src/Setting.hpp | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/src/Configuration.hpp b/src/Configuration.hpp index 9c9142d..cf99ad1 100644 --- a/src/Configuration.hpp +++ b/src/Configuration.hpp @@ -54,7 +54,7 @@ public: // Set a global configuration setting template<class S> - void set(typename S::Value value) + void set(decltype(S::value) value) { S& setting = std::get<S>(_settings); @@ -66,7 +66,7 @@ public: // Get a global configuration setting template<class S> - typename S::Value get() const + const decltype(S::value) get() const { return std::get<S>(_settings).value; } diff --git a/src/Setting.hpp b/src/Setting.hpp index 9720ba2..f8864d0 100644 --- a/src/Setting.hpp +++ b/src/Setting.hpp @@ -16,9 +16,7 @@ namespace setting { template<class T> struct Setting { - using Value = T; - - Value value{}; + T value{}; }; struct PortColor { |