From 08f60074b692c38f7209e1b3dec37cba9f28d62f Mon Sep 17 00:00:00 2001 From: Stepan Ponomarev Date: Thu, 29 Sep 2022 15:34:00 +0300 Subject: [PATCH] remove static from constexpr function --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 0364f78d..79f667dd 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -1415,7 +1415,7 @@ struct chrono_format_checker : null_chrono_spec_handler { FMT_CONSTEXPR void on_minute(numeric_system) {} FMT_CONSTEXPR void on_second(numeric_system) {} FMT_CONSTEXPR void on_second_with_fractions(numeric_system, int precision) { - static constexpr int allowed_precisions[6] = {3, 6, 9, 12, 15, 18}; + constexpr int allowed_precisions[6] = {3, 6, 9, 12, 15, 18}; check_allowed_precision(precision, allowed_precisions); } FMT_CONSTEXPR void on_12_hour_time() {}