From d1c75b5fad48e139d39c3b8df1b5666bbf2adc5d Mon Sep 17 00:00:00 2001 From: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> Date: Mon, 23 Aug 2021 21:50:08 +0800 Subject: [PATCH] use FMT_THROW --- include/fmt/ranges.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/ranges.h b/include/fmt/ranges.h index 855a2076..d2fafc42 100644 --- a/include/fmt/ranges.h +++ b/include/fmt/ranges.h @@ -385,7 +385,7 @@ struct formatter, Char> { if (N > 1) { auto end1 = do_parse(ctx, std::integral_constant{}); if (end != end1) - throw fmt::format_error("incompatible format specs for tuple elements"); + FMT_THROW(format_error("incompatible format specs for tuple elements")); } return end; }