Fix compilation as a C++20 module with gcc 13

This commit is contained in:
Victor Zverovich 2023-04-14 09:49:07 -07:00
parent d9c19940a3
commit d8a2698e6c
2 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ template <typename T, typename Char> struct parse_specs_result {
int next_arg_id;
};
constexpr int manual_indexing_id = -1;
enum { manual_indexing_id = -1 };
template <typename T, typename Char>
constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,

View File

@ -195,7 +195,7 @@ inline int floor_log10_pow2_minus_log10_4_over_3(int e) noexcept {
return (e * 631305 - 261663) >> 21;
}
static constexpr struct {
FMT_INLINE_VARIABLE constexpr struct {
uint32_t divisor;
int shift_amount;
} div_small_pow10_infos[] = {{10, 16}, {100, 16}};