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; }