From f957f4094a8d98ad0de294c3e6325ce9a860994e Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 26 May 2021 15:31:12 -0700 Subject: More work on TableTemplate --- core/src/Model/Workflow/Values/BasicValues.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/src/Model/Workflow/Values/BasicValues.cpp') diff --git a/core/src/Model/Workflow/Values/BasicValues.cpp b/core/src/Model/Workflow/Values/BasicValues.cpp index 93ee366..a7cf635 100644 --- a/core/src/Model/Workflow/Values/BasicValues.cpp +++ b/core/src/Model/Workflow/Values/BasicValues.cpp @@ -20,12 +20,17 @@ static std::string NumberToString(T value) constexpr auto kSize = std::numeric_limits::max_digits10; char buf[kSize]; +#if PLATFORM_WIN32 auto res = std::to_chars(buf, buf + kSize, value); if (res.ec == std::errc()) { return std::string(buf, res.ptr); } else { return ""; } +#else + // TODO libstdc++ doesn't have floating point charconv yet + return std::to_string(value); +#endif } std::string NumericValue::GetTruncatedString() const -- cgit v1.2.3-70-g09d2