From f4dfdc072ed55ec9bb47c5911223a5ab7825d3fd Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 17 Oct 2023 08:15:10 +0200 Subject: [PATCH] fix: printing of `half_high_dot` now properly updates the iterator --- src/core/include/mp-units/unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/include/mp-units/unit.h b/src/core/include/mp-units/unit.h index e2f7af30..54a9e609 100644 --- a/src/core/include/mp-units/unit.h +++ b/src/core/include/mp-units/unit.h @@ -671,7 +671,7 @@ constexpr Out print_separator(Out out, unit_symbol_formatting fmt) if (fmt.encoding != text_encoding::unicode) throw std::invalid_argument( "'unit_symbol_separator::half_high_dot' can be only used with 'text_encoding::unicode'"); - copy(std::string_view("⋅"), out); + out = copy(std::string_view("⋅"), out).out; } else { *out++ = ' '; }