diff --git a/libs/math/include/psemek/math/box.hpp b/libs/math/include/psemek/math/box.hpp index 04b26e82..80c9a944 100644 --- a/libs/math/include/psemek/math/box.hpp +++ b/libs/math/include/psemek/math/box.hpp @@ -354,9 +354,9 @@ namespace std template struct formatter<::psemek::math::box, Char> - : formatter<::psemek::math::interval> + : formatter<::psemek::math::interval, Char> { - using formatter<::psemek::math::interval>::parse; + using formatter<::psemek::math::interval, Char>::parse; template auto format(::psemek::math::box const & b, FormatContext & ctx) const @@ -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")); - ctx.advance_to(formatter<::psemek::math::interval>::format(b[i], ctx)); + ctx.advance_to(formatter<::psemek::math::interval, Char>::format(b[i], ctx)); } return ctx.out(); } diff --git a/libs/math/include/psemek/math/interval.hpp b/libs/math/include/psemek/math/interval.hpp index 352c3163..41d2c804 100644 --- a/libs/math/include/psemek/math/interval.hpp +++ b/libs/math/include/psemek/math/interval.hpp @@ -341,17 +341,17 @@ namespace std template struct formatter<::psemek::math::interval, Char> - : formatter + : formatter { - using formatter::parse; + using formatter::parse; template auto format(::psemek::math::interval const & i, FormatContext & ctx) const { ctx.advance_to(std::format_to(ctx.out(), "[")); - ctx.advance_to(formatter::format(i.min, ctx)); + ctx.advance_to(formatter::format(i.min, ctx)); ctx.advance_to(std::format_to(ctx.out(), " .. ")); - ctx.advance_to(formatter::format(i.max, ctx)); + ctx.advance_to(formatter::format(i.max, ctx)); return std::format_to(ctx.out(), "]"); } }; diff --git a/libs/math/include/psemek/math/matrix.hpp b/libs/math/include/psemek/math/matrix.hpp index 46e6006d..a2ee8fcd 100644 --- a/libs/math/include/psemek/math/matrix.hpp +++ b/libs/math/include/psemek/math/matrix.hpp @@ -553,9 +553,9 @@ namespace std template struct formatter<::psemek::math::matrix, Char> - : formatter + : formatter { - using formatter::parse; + using formatter::parse; template auto format(::psemek::math::matrix const & m, FormatContext & ctx) const @@ -564,7 +564,7 @@ namespace std { for (std::size_t j = 0; j < m.columns(); ++j) { - ctx.advance_to(formatter::format(m[i][j], ctx)); + ctx.advance_to(formatter::format(m[i][j], ctx)); ctx.advance_to(std::format_to(ctx.out(), " ")); } ctx.advance_to(std::format_to(ctx.out(), "\n")); diff --git a/libs/math/include/psemek/math/point.hpp b/libs/math/include/psemek/math/point.hpp index 2e2af0d8..d1dc97c1 100644 --- a/libs/math/include/psemek/math/point.hpp +++ b/libs/math/include/psemek/math/point.hpp @@ -308,9 +308,9 @@ namespace std template struct formatter<::psemek::math::point, Char> - : formatter + : formatter { - using formatter::parse; + using formatter::parse; template auto format(::psemek::math::point const & p, FormatContext & ctx) const @@ -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(), ", ")); - ctx.advance_to(formatter::format(p[i], ctx)); + ctx.advance_to(formatter::format(p[i], ctx)); } return std::format_to(ctx.out(), ")"); } diff --git a/libs/math/include/psemek/math/vector.hpp b/libs/math/include/psemek/math/vector.hpp index 908b0539..977f244a 100644 --- a/libs/math/include/psemek/math/vector.hpp +++ b/libs/math/include/psemek/math/vector.hpp @@ -548,9 +548,9 @@ namespace std template struct formatter<::psemek::math::vector, Char> - : formatter + : formatter { - using formatter::parse; + using formatter::parse; template auto format(::psemek::math::vector const & v, FormatContext & ctx) const @@ -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(), ", ")); - ctx.advance_to(formatter::format(v[i], ctx)); + ctx.advance_to(formatter::format(v[i], ctx)); } return std::format_to(ctx.out(), ")"); }