Inline visit

This commit is contained in:
Victor Zverovich 2020-06-06 09:02:32 -07:00
parent f11e968708
commit 8f7a824e47

View File

@ -1155,9 +1155,8 @@ template <typename Context> class basic_format_arg {
\endrst \endrst
*/ */
template <typename Visitor, typename Context> template <typename Visitor, typename Context>
FMT_CONSTEXPR auto visit_format_arg(Visitor&& vis, FMT_CONSTEXPR_DECL FMT_INLINE auto visit_format_arg(
const basic_format_arg<Context>& arg) Visitor&& vis, const basic_format_arg<Context>& arg) -> decltype(vis(0)) {
-> decltype(vis(0)) {
using char_type = typename Context::char_type; using char_type = typename Context::char_type;
switch (arg.type_) { switch (arg.type_) {
case detail::type::none_type: case detail::type::none_type: