diff --git a/src/Config.cpp b/src/Config.cpp index 7c4fe44..f12abfc 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -43,6 +43,17 @@ void ApplyProperty(double& propertyToSet, const std::string_view& value) propertyToSet = std::stod(valStr.c_str()); } +template<> +void ApplyProperty(char& propertyToSet, const std::string_view& value) +{ + if (value.size() > 1) + { + LOG("Invalid size for char property: " << value); + return; + } + propertyToSet = value[0]; +} + template<> void ApplyProperty(bool& propertyToSet, const std::string_view& value) {