diff --git a/include/TSettings.h b/include/TSettings.h index e6e191b..bf8e522 100644 --- a/include/TSettings.h +++ b/include/TSettings.h @@ -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 getACLMap() const { return *InputAccessMapping;