Fix some math primitive formatters

This commit is contained in:
Nikita Lisitsa 2026-06-05 23:00:19 +03:00
parent 0731dd9216
commit 892662307f
3 changed files with 3 additions and 3 deletions

View file

@ -364,7 +364,7 @@ namespace std
for (std::size_t i = 0; i < b.dimension(); ++i)
{
if (i > 0) ctx.advance_to(std::format_to(ctx.out(), "x"));
formatter<::psemek::math::interval<T>>::format(b[i], ctx);
ctx.advance_to(formatter<::psemek::math::interval<T>>::format(b[i], ctx));
}
return ctx.out();
}

View file

@ -325,7 +325,7 @@ namespace std
for (std::size_t i = 0; i < p.dimension(); ++i)
{
if (i > 0) ctx.advance_to(std::format_to(ctx.out(), ", "));
formatter<T>::format(p[i], ctx);
ctx.advance_to(formatter<T>::format(p[i], ctx));
}
return std::format_to(ctx.out(), ")");
}

View file

@ -565,7 +565,7 @@ namespace std
for (std::size_t i = 0; i < v.dimension(); ++i)
{
if (i > 0) ctx.advance_to(std::format_to(ctx.out(), ", "));
formatter<T>::format(v[i], ctx);
ctx.advance_to(formatter<T>::format(v[i], ctx));
}
return std::format_to(ctx.out(), ")");
}