diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 182458bf..034049e0 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -342,7 +342,7 @@ struct formatter decltype(ctx.begin()) { auto it = ctx.begin(); if (it != ctx.end() && *it != '}') - FMT_THROW(format_error("invalid format specifier")); + throw_format_error("invalid format specifier"); detail::for_each(formatters_, detail::parse_empty_specs{ctx}); return it; } @@ -451,7 +451,7 @@ struct range_formatter< } if (it != end && *it != '}') { - if (*it != ':') FMT_THROW(format_error("invalid format specifier")); + if (*it != ':') throw_format_error("invalid format specifier"); ++it; } else { detail::maybe_set_debug_format(underlying_, true); @@ -631,7 +631,7 @@ auto join(It begin, Sentinel end, string_view sep) -> join_view { */ template auto join(Range&& range, string_view sep) - -> join_view, detail::sentinel_t> { + -> join_view { return join(std::begin(range), std::end(range), sep); } @@ -684,7 +684,7 @@ struct formatter, Char> { if (N > 1) { auto end1 = do_parse(ctx, std::integral_constant()); if (end != end1) - FMT_THROW(format_error("incompatible format specs for tuple elements")); + throw_format_error("incompatible format specs for tuple elements"); } #endif return end;