From 1638b75eba931ba4c0ca970eb8f8152d92e736d3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 19 Jul 2022 09:55:07 -0400 Subject: Remove Setting::Value type --- src/Configuration.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Configuration.hpp') 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 - void set(typename S::Value value) + void set(decltype(S::value) value) { S& setting = std::get(_settings); @@ -66,7 +66,7 @@ public: // Get a global configuration setting template - typename S::Value get() const + const decltype(S::value) get() const { return std::get(_settings).value; } -- cgit v1.2.1