From 6ad301235f2973e20dd75c2844c1ade57e05c26f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 14 Jun 2023 17:58:41 +0300 Subject: [PATCH] Optimize code unit output in compiled format --- include/fmt/compile.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 34a581d4f38f..46cbc8fc319f 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -196,7 +196,8 @@ template struct code_unit { template constexpr OutputIt format(OutputIt out, const Args&...) const { - return write(out, value); + *out++ = value; + return out; } };