mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-09 15:14:27 +02:00
fix: printing of half_high_dot
now properly updates the iterator
This commit is contained in:
@@ -671,7 +671,7 @@ constexpr Out print_separator(Out out, unit_symbol_formatting fmt)
|
|||||||
if (fmt.encoding != text_encoding::unicode)
|
if (fmt.encoding != text_encoding::unicode)
|
||||||
throw std::invalid_argument(
|
throw std::invalid_argument(
|
||||||
"'unit_symbol_separator::half_high_dot' can be only used with 'text_encoding::unicode'");
|
"'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 {
|
} else {
|
||||||
*out++ = ' ';
|
*out++ = ' ';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user