diff options
Diffstat (limited to 'lib/configuration/configuration.h')
-rw-r--r-- | lib/configuration/configuration.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/configuration/configuration.h b/lib/configuration/configuration.h index c2400b6..af55f62 100644 --- a/lib/configuration/configuration.h +++ b/lib/configuration/configuration.h @@ -40,7 +40,7 @@ class consumable(unconsumed) Configuration : private std::unordered_map<std::str public: return_typestate(unconsumed) Configuration(); - return_typestate(unconsumed) Configuration(std::initializer_list<std::pair<std::string, conf_value_t>> l) noexcept; + return_typestate(unconsumed) Configuration(const std::initializer_list<std::pair<std::string, conf_value_t>> &list) noexcept; Configuration(const Configuration &) = delete; Configuration &operator=(const Configuration &) = delete; @@ -126,6 +126,8 @@ public: return T{}; } + callable_when(unconsumed) void setValue(const std::string &key, const std::string &value); + bool make_global(); private: |