From 4155c15fe7e9d42fc2ee71b37f4d7276c6abdbed Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 14 Jul 2024 15:13:58 -0700 Subject: [PATCH] Inline visit --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index a2a05d408334e..dd4b2210eea12 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -1776,7 +1776,7 @@ template class basic_format_arg { * `vis(value)` will be called with the value of type `double`. */ template - FMT_CONSTEXPR auto visit(Visitor&& vis) const -> decltype(vis(0)) { + FMT_CONSTEXPR FMT_INLINE auto visit(Visitor&& vis) const -> decltype(vis(0)) { switch (type_) { case detail::type::none_type: break;