diff options
Diffstat (limited to 'core/src/Model/Workflow')
-rw-r--r-- | core/src/Model/Workflow/Values/BasicValues.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<T>::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 "<err>"; } +#else + // TODO libstdc++ doesn't have floating point charconv yet + return std::to_string(value); +#endif } std::string NumericValue::GetTruncatedString() const |