| 48 | { |
| 49 | template<typename T> |
| 50 | void validateFloatingPointSettingValue(T value) |
| 51 | { |
| 52 | if constexpr (std::is_floating_point_v<T>) |
| 53 | { |
| 54 | if (!std::isfinite(value)) |
| 55 | throw Exception(ErrorCodes::CANNOT_PARSE_NUMBER, |
| 56 | "Float setting value must be finite, got {}", value); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | template <typename T> |
| 61 | T stringToNumber(const String & str) |
no test coverage detected