diff --git a/include/fmt/core.h b/include/fmt/core.h index 87ed402b..b4c511fe 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1155,9 +1155,8 @@ template class basic_format_arg { \endrst */ template -FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis, - const basic_format_arg& arg) - -> decltype(vis(0)) { +FMT_CONSTEXPR_DECL FMT_INLINE auto visit_format_arg( + Visitor&& vis, const basic_format_arg& arg) -> decltype(vis(0)) { using char_type = typename Context::char_type; switch (arg.type_) { case detail::type::none_type: