From 2838061f107861ff6a60725e326021869d5ae0a8 Mon Sep 17 00:00:00 2001 From: trilene Date: Thu, 29 Oct 2020 19:42:05 -0400 Subject: [PATCH] Avoid std::from_chars for now --- src/WebRTCSession.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/WebRTCSession.cpp b/src/WebRTCSession.cpp index a5aa895d..eb00f009 100644 --- a/src/WebRTCSession.cpp +++ b/src/WebRTCSession.cpp @@ -2,7 +2,6 @@ #include #include #include -#include #include #include #include @@ -129,10 +128,9 @@ std::pair tokenise(std::string_view str, char delim) { std::pair ret; + ret.first = std::atoi(str.data()); auto pos = str.find_first_of(delim); - auto s = str.data(); - std::from_chars(s, s + pos, ret.first); - std::from_chars(s + pos + 1, s + str.size(), ret.second); + ret.second = std::atoi(str.data() + pos + 1); return ret; }