From 8f7a824e4713cae2a9a5dda894cfefd12f99e057 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 6 Jun 2020 09:02:32 -0700 Subject: [PATCH] Inline visit --- include/fmt/core.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: