Commit 1babec50 authored by Tobias Mayer's avatar Tobias Mayer

Allow adding lvalue config_options to set

parent c6232740
...@@ -166,8 +166,7 @@ public: ...@@ -166,8 +166,7 @@ public:
} }
/// Adds a config option to the set. /// Adds a config option to the set.
/// @private config_option_set& add(config_option opt);
config_option_set& add(config_option&& opt);
/// Generates human-readable help text for all options. /// Generates human-readable help text for all options.
std::string help_text(bool global_only = true) const; std::string help_text(bool global_only = true) const;
......
...@@ -52,7 +52,7 @@ void insert(string_builder& builder, size_t count, char ch) { ...@@ -52,7 +52,7 @@ void insert(string_builder& builder, size_t count, char ch) {
namespace caf { namespace caf {
config_option_set& config_option_set::add(config_option&& opt) { config_option_set& config_option_set::add(config_option opt) {
opts_.emplace_back(std::move(opt)); opts_.emplace_back(std::move(opt));
return *this; return *this;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment