fix g++-4.8 build

This commit is contained in:
Stepan Ponomarev 2022-09-29 15:13:13 +03:00
parent 1745ff204f
commit f7b4ff3ed1

View File

@ -1415,7 +1415,8 @@ struct chrono_format_checker : null_chrono_spec_handler<chrono_format_checker> {
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) {
check_allowed_precision(precision, {3, 6, 9, 12, 15, 18});
static constexpr int allowed_precisions[6] = {3, 6, 9, 12, 15, 18};
check_allowed_precision(precision, allowed_precisions);
}
FMT_CONSTEXPR void on_12_hour_time() {}
FMT_CONSTEXPR void on_24_hour_time() {}