Commit 7431165f authored by Victor Zverovich's avatar Victor Zverovich

Make to_string bypass format

parent ee4d4c7f
......@@ -3371,7 +3371,9 @@ join(const Range& range, wstring_view sep) {
*/
template <typename T, FMT_ENABLE_IF(!std::is_integral<T>::value)>
inline std::string to_string(const T& value) {
return format("{}", value);
std::string result;
detail::write<char>(std::back_inserter(result), value);
return result;
}
template <typename T, FMT_ENABLE_IF(std::is_integral<T>::value)>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment