From 1b1c3ceff62939ba52e9ca0ea11c8f1c1ac97a61 Mon Sep 17 00:00:00 2001 From: Alexey Ochapov Date: Fri, 25 Dec 2020 03:29:46 +0300 Subject: [PATCH] replace `FMT_CONSTEXPR20` with `FMT_CONSTEXPR` for functions where `hex_digits` or shifts from `basic_data` is used --- include/fmt/format.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 4a486112..d7f03a88 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1139,8 +1139,8 @@ inline format_decimal_result format_decimal(Iterator out, UInt value, } template -FMT_CONSTEXPR20 Char* format_uint(Char* buffer, UInt value, int num_digits, - bool upper = false) { +FMT_CONSTEXPR Char* format_uint(Char* buffer, UInt value, int num_digits, + bool upper = false) { buffer += num_digits; Char* end = buffer; do { @@ -1554,9 +1554,9 @@ FMT_NOINLINE FMT_CONSTEXPR OutputIt fill(OutputIt it, size_t n, // width: output display width in (terminal) column positions. template -FMT_CONSTEXPR20 OutputIt write_padded(OutputIt out, - const basic_format_specs& specs, - size_t size, size_t width, F&& f) { +FMT_CONSTEXPR OutputIt write_padded(OutputIt out, + const basic_format_specs& specs, + size_t size, size_t width, F&& f) { static_assert(align == align::left || align == align::right, ""); unsigned spec_width = to_unsigned(specs.width); size_t padding = spec_width > width ? spec_width - width : 0;