From 7431165f38bc608c8367f5511ad670e1afa9aefa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 15 Jun 2020 17:55:16 -0700 Subject: [PATCH] Make to_string bypass format --- include/fmt/format.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)>