diff options
author | David Robillard <d@drobilla.net> | 2022-07-19 09:55:07 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 10:35:32 -0400 |
commit | 1638b75eba931ba4c0ca970eb8f8152d92e736d3 (patch) | |
tree | 9c12964060ada4fa8b1a5d5b04bf1ffbe2709f55 /src/Configuration.hpp | |
parent | 4658288c09861a2c222636e7844f773fef43bab7 (diff) | |
download | patchage-1638b75eba931ba4c0ca970eb8f8152d92e736d3.tar.gz patchage-1638b75eba931ba4c0ca970eb8f8152d92e736d3.tar.bz2 patchage-1638b75eba931ba4c0ca970eb8f8152d92e736d3.zip |
Remove Setting<T>::Value type
Diffstat (limited to 'src/Configuration.hpp')
-rw-r--r-- | src/Configuration.hpp | 4 |
1 files changed, 2 insertions, 2 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; } |