replace FMT_CONSTEXPR20 with FMT_CONSTEXPR
for functions where `hex_digits` or shifts from `basic_data` is used
This commit is contained in:
parent
5cca27f03b
commit
1b1c3ceff6
@ -1139,8 +1139,8 @@ inline format_decimal_result<Iterator> format_decimal(Iterator out, UInt value,
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <unsigned BASE_BITS, typename Char, typename UInt>
|
template <unsigned BASE_BITS, typename Char, typename UInt>
|
||||||
FMT_CONSTEXPR20 Char* format_uint(Char* buffer, UInt value, int num_digits,
|
FMT_CONSTEXPR Char* format_uint(Char* buffer, UInt value, int num_digits,
|
||||||
bool upper = false) {
|
bool upper = false) {
|
||||||
buffer += num_digits;
|
buffer += num_digits;
|
||||||
Char* end = buffer;
|
Char* end = buffer;
|
||||||
do {
|
do {
|
||||||
@ -1554,9 +1554,9 @@ FMT_NOINLINE FMT_CONSTEXPR OutputIt fill(OutputIt it, size_t n,
|
|||||||
// width: output display width in (terminal) column positions.
|
// width: output display width in (terminal) column positions.
|
||||||
template <align::type align = align::left, typename OutputIt, typename Char,
|
template <align::type align = align::left, typename OutputIt, typename Char,
|
||||||
typename F>
|
typename F>
|
||||||
FMT_CONSTEXPR20 OutputIt write_padded(OutputIt out,
|
FMT_CONSTEXPR OutputIt write_padded(OutputIt out,
|
||||||
const basic_format_specs<Char>& specs,
|
const basic_format_specs<Char>& specs,
|
||||||
size_t size, size_t width, F&& f) {
|
size_t size, size_t width, F&& f) {
|
||||||
static_assert(align == align::left || align == align::right, "");
|
static_assert(align == align::left || align == align::right, "");
|
||||||
unsigned spec_width = to_unsigned(specs.width);
|
unsigned spec_width = to_unsigned(specs.width);
|
||||||
size_t padding = spec_width > width ? spec_width - width : 0;
|
size_t padding = spec_width > width ? spec_width - width : 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user