Add issue with implicit argument type conversions for Settings.set()

Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
This commit is contained in:
Lucca Jiménez Könings 2024-05-15 13:40:25 +02:00
parent 3609fd77ec
commit f567645db6
No known key found for this signature in database

View File

@ -213,6 +213,11 @@ struct Settings {
}
map->at(key) = value;
}
// Additional set overload for const char*, to avoid implicit conversions when set is
// invoked with string literals rather than std::strings
void set(Key key, const char* value){
set(key, std::string(value));
}
const std::unordered_map<ComposedKey, SettingsAccessControl> getACLMap() const {
return *InputAccessMapping;