Misc: Replace stringstream str() with C++20 move str()

No extra heap allocation/copy.
This commit is contained in:
Stenzek committed 2025-02-05 22:38:48 +10:00
1 parent 8aa97a8118
commit bee2dabc77
7 files changed
+37 -37

No files matched your search

+1 -1
View File
@@ -202,7 +202,7 @@ inline std::string ToChars(T value)
std::ostringstream ss;
ss.imbue(std::locale::classic());
ss << value;
return ss.str();
return std::move(ss).str();
#endif
}