From 77a2c231e67e742c9c594b79ffd0a562bc0ef4ac Mon Sep 17 00:00:00 2001 From: AMAN UPADHYAY Date: Sun, 12 Jul 2026 11:37:59 +0530 Subject: [PATCH] Fix : restore the missing comment and remove the redundant detail:: qualifier --- include/fmt/compile.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/fmt/compile.h b/include/fmt/compile.h index 838dd0c4..2a0be049 100644 --- a/include/fmt/compile.h +++ b/include/fmt/compile.h @@ -168,6 +168,7 @@ constexpr auto get_arg_checked(const Args&... args) -> const T& { template struct is_compiled_format> : std::true_type {}; +// A replacement field that refers to argument N. template struct field { using char_type = Char; @@ -177,9 +178,9 @@ template struct field { if constexpr (std::is_convertible>::value) { auto s = basic_string_view(arg); return copy(s.begin(), s.end(), out); - } else if constexpr (detail::use_format_as::value) { + } else if constexpr (use_format_as::value) { return write(out, format_as(arg)); - } else if constexpr (detail::use_format_as_member::value) { + } else if constexpr (use_format_as_member::value) { return write(out, formatter::format_as(arg)); } else { return write(out, arg);