Skip to content

Commit

Permalink
fix: iterator is now properly updated for all cases in unit_symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
mpusz committed Oct 14, 2023
1 parent c9978dd commit fb71971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/include/mp-units/unit.h
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ constexpr Out unit_symbol_impl(Out out, const type_list<Nums...>& nums, const ty
} else {
using enum unit_symbol_solidus;
if constexpr (sizeof...(Nums) > 0) {
unit_symbol_impl<CharT>(out, nums, std::index_sequence_for<Nums...>(), fmt, false);
out = unit_symbol_impl<CharT>(out, nums, std::index_sequence_for<Nums...>(), fmt, false);
}

if (fmt.solidus == always || (fmt.solidus == one_denominator && sizeof...(Dens) == 1)) {
Expand Down

0 comments on commit fb71971

Please sign in to comment.