Skip to content

Commit

Permalink
Renaming const_range to range_type.
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed Mar 4, 2022
1 parent bc399a0 commit 36ab74f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/fmt/ranges.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ struct formatter<
#endif
>> {

using const_range = detail::maybe_const_range<R>;
using range_type = detail::maybe_const_range<R>;
using formatter_type =
detail::range_formatter_type<Char, detail::uncvref_type<const_range>>;
detail::range_formatter_type<Char, detail::uncvref_type<range_type>>;
formatter_type underlying_;
bool custom_specs_ = false;

Expand All @@ -389,7 +389,7 @@ struct formatter<
}

template <typename FormatContext>
auto format(const_range& range, FormatContext& ctx) const
auto format(range_type& range, FormatContext& ctx) const
-> decltype(ctx.out()) {
#ifdef FMT_DEPRECATED_BRACED_RANGES
Char prefix = '{';
Expand Down

0 comments on commit 36ab74f

Please sign in to comment.