diff --git a/include/fmt/format.h b/include/fmt/format.h index 9937aaa7..7dab11b5 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3371,7 +3371,9 @@ join(const Range& range, wstring_view sep) { */ template ::value)> inline std::string to_string(const T& value) { - return format("{}", value); + std::string result; + detail::write(std::back_inserter(result), value); + return result; } template ::value)>