Commit 8519cc50 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Configuration: unbreak setting arrays

parent 4066445f
......@@ -147,10 +147,11 @@ namespace corryvreckan {
// NOTE: not the most elegant way to support arrays
std::string str;
for(auto& el : val) {
str += corryvreckan::to_string(el);
str += ",";
str += corryvreckan::to_string(val);
}
set(key, str);
str.pop_back();
config_[key] = str;
}
template <typename T> void Configuration::setDefault(const std::string& key, const T& val) {
......
Supports Markdown
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