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);