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; } };