diff --git a/src/Config.cpp b/src/Config.cpp index 42e6a64..2a00d72 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -27,6 +27,14 @@ void ApplyProperty(uint32_t& propertyToSet, const std::string_view& va propertyToSet = atoi(valStr.c_str()); } +template<> +void ApplyProperty(double& propertyToSet, const std::string_view& value) +{ + // Why, C++? + std::string valStr = std::string(value); + propertyToSet = std::stod(valStr.c_str()); +} + template<> void ApplyProperty(bool& propertyToSet, const std::string_view& value) {