From 605dd2a1d99c78e2d7f9662beab60c4a25af6941 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Tue, 30 Dec 2025 14:34:08 -0500 Subject: [PATCH] Make digits2_i noexcept to match digits2 function (#4639) Add noexcept specifier to digits2_i too make it match https://github.com/fmtlib/fmt/commit/3269c1cea53cb84ab971b36486627367cf73cadc --- include/fmt/format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index b9da317a..0a0c8650 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1044,7 +1044,7 @@ inline auto digits2(size_t value) noexcept -> const char* { // Given i in [0, 100), let x be the first 7 digits after // the decimal point of i / 100 in base 2, the first 2 bytes // after digits2_i(x) is the string representation of i. -inline auto digits2_i(size_t value) -> const char* { +inline auto digits2_i(size_t value) noexcept -> const char* { alignas(2) static const char data[] = "00010203 0405060707080910 1112" "131414151617 18192021 222324 "