feat: do not print space between a number and percent or per_mille

This commit is contained in:
Mateusz Pusz committed 2024-01-19 21:20:33 +01:00
1 parent e51a5f6e8e
commit 1df2cc7b58
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -836,6 +836,11 @@ constexpr Out unit_symbol_impl(Out out, const derived_unit<Expr...>&, unit_symbo
template<Unit auto U>
inline constexpr bool space_before_unit_symbol = true;
template<>
inline constexpr bool space_before_unit_symbol<percent> = false;
template<>
inline constexpr bool space_before_unit_symbol<per_mille> = false;
template<typename CharT = char, std::output_iterator<CharT> Out, Unit U>
constexpr Out unit_symbol_to(Out out, U u, unit_symbol_formatting fmt = unit_symbol_formatting{})
{