ParameterSystem: add support for quad Scalar

This commit is contained in:
Arne Morten Kvarving 2024-08-12 15:20:08 +02:00
parent ba7993fb10
commit 3d737c0303

View File

@ -923,6 +923,11 @@ auto Get(bool errorIfNotRegistered)
else if constexpr (std::is_same_v<ParamType, bool>) {
defaultValue = defVal == "1";
}
#if HAVE_QUAD
else if constexpr (std::is_same_v<ParamType, quad>) {
defaultValue = std::strtold(defVal.data(), nullptr);
}
#endif
else {
std::from_chars(defVal.data(), defVal.data() + defVal.size(), defaultValue);
}