fix: printing of half_high_dot now properly updates the iterator

This commit is contained in:
Mateusz Pusz
2023-10-17 08:15:10 +02:00
parent 556df31590
commit f4dfdc072e

View File

@@ -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++ = ' ';
}