fix: const_iterator replaced back with iterator in formatter

This commit is contained in:
Mateusz Pusz
2021-11-15 16:52:22 +01:00
parent 6f38e77426
commit 7bf06e2b91

View File

@@ -305,7 +305,7 @@ template<typename Dimension, typename Unit, typename Rep, typename CharT>
struct STD_FMT::formatter<units::quantity<Dimension, Unit, Rep>, CharT> { struct STD_FMT::formatter<units::quantity<Dimension, Unit, Rep>, CharT> {
private: private:
using quantity = units::quantity<Dimension, Unit, Rep>; using quantity = units::quantity<Dimension, Unit, Rep>;
using const_iterator = TYPENAME STD_FMT::basic_format_parse_context<CharT>::const_iterator; using iterator = TYPENAME STD_FMT::basic_format_parse_context<CharT>::iterator;
bool quantity_value = false; bool quantity_value = false;
bool quantity_unit = false; bool quantity_unit = false;
@@ -373,7 +373,7 @@ private:
} }
}; };
[[nodiscard]] constexpr std::pair<const_iterator, const_iterator> do_parse(STD_FMT::basic_format_parse_context<CharT>& ctx) [[nodiscard]] constexpr std::pair<iterator, iterator> do_parse(STD_FMT::basic_format_parse_context<CharT>& ctx)
{ {
auto begin = ctx.begin(); auto begin = ctx.begin();
auto end = ctx.end(); auto end = ctx.end();