stringFloat comment

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2026-04-03 11:25:33 -07:00
parent e04f36b541
commit 6bb888b218
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ std::pair<float, bool>
stringFloat(const std::string &str)
{
float value;
// OsX 15.xx and earlier clang do not support std::from_chars.
#if defined(__cpp_lib_to_chars) && __cpp_lib_to_chars >= 201611L
auto [ptr, ec] = std::from_chars(str.data(), str.data() + str.size(), value);
if (ec == std::errc()