diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-04 13:40:20 +0300 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2020-10-04 13:40:20 +0300 |
commit | e5809ca41c81750dbf59c2b170328df892a69e26 (patch) | |
tree | a9e4eff906ead096f97058ba80ed6869cb0db78a /lib/configuration/configuration.h | |
parent | Fix deprecated warning in meson.build (diff) | |
download | smolbote-e5809ca41c81750dbf59c2b170328df892a69e26.tar.xz |
Remove outparam section in Configuration parse
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: |