Skip to content

Commit

Permalink
Optimize code unit output in compiled format
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jun 14, 2023
1 parent 8732ad8 commit 6ad3012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ template <typename Char> struct code_unit {

template <typename OutputIt, typename... Args>
constexpr OutputIt format(OutputIt out, const Args&...) const {
return write<Char>(out, value);
*out++ = value;
return out;
}
};

Expand Down

0 comments on commit 6ad3012

Please sign in to comment.