diff --git a/include/omath/angle.hpp b/include/omath/angle.hpp index 0126158..7f589a5 100644 --- a/include/omath/angle.hpp +++ b/include/omath/angle.hpp @@ -150,23 +150,17 @@ namespace omath } }; } // namespace omath -// partial specialization of std::formatter for omath::Angle + template struct std::formatter, CharT> { using AngleT = omath::Angle; - - // required: default ctor is implicitly OK - - // parse with the correct CharT-aware context [[nodiscard]] static constexpr auto parse(std::basic_format_parse_context& ctx) -> std::basic_format_parse_context::iterator { - return ctx.begin(); // no custom format specifiers + return ctx.begin(); } - - // format; here we only implement for narrow char to keep it simple template auto format(const AngleT& deg, FormatContext& ctx) const {