feat: scaled units are now enclosed in parenthesis (...) instead of brackets [...]

This commit is contained in:
Mateusz Pusz
2024-11-29 12:17:53 +01:00
parent 52e95f9b2e
commit f0885f8027
2 changed files with 80 additions and 80 deletions
+2 -2
View File
@@ -781,11 +781,11 @@ template<typename CharT, std::output_iterator<CharT> Out, auto M, typename U>
constexpr Out unit_symbol_impl(Out out, const scaled_unit_impl<M, U>& u, const unit_symbol_formatting& fmt,
bool negative_power)
{
*out++ = '[';
*out++ = '(';
magnitude_symbol<CharT>(out, M, fmt);
if constexpr (space_before_unit_symbol<scaled_unit<M, U>::_reference_unit_>) *out++ = ' ';
unit_symbol_impl<CharT>(out, u._reference_unit_, fmt, negative_power);
*out++ = ']';
*out++ = ')';
return out;
}