mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix compilation as a C++20 module with gcc 13
This commit is contained in:
parent
d9c19940a3
commit
d8a2698e6c
@ -331,7 +331,7 @@ template <typename T, typename Char> struct parse_specs_result {
|
|||||||
int next_arg_id;
|
int next_arg_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr int manual_indexing_id = -1;
|
enum { manual_indexing_id = -1 };
|
||||||
|
|
||||||
template <typename T, typename Char>
|
template <typename T, typename Char>
|
||||||
constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
|
constexpr parse_specs_result<T, Char> parse_specs(basic_string_view<Char> str,
|
||||||
|
@ -195,7 +195,7 @@ inline int floor_log10_pow2_minus_log10_4_over_3(int e) noexcept {
|
|||||||
return (e * 631305 - 261663) >> 21;
|
return (e * 631305 - 261663) >> 21;
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr struct {
|
FMT_INLINE_VARIABLE constexpr struct {
|
||||||
uint32_t divisor;
|
uint32_t divisor;
|
||||||
int shift_amount;
|
int shift_amount;
|
||||||
} div_small_pow10_infos[] = {{10, 16}, {100, 16}};
|
} div_small_pow10_infos[] = {{10, 16}, {100, 16}};
|
||||||
|
Loading…
Reference in New Issue
Block a user