From 8c12b95a2040fc2d3d118654159ce99ba703960b Mon Sep 17 00:00:00 2001 From: yumeyao Date: Mon, 1 Mar 2021 10:23:59 +0800 Subject: [PATCH] adapt named args --- include/fmt/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/test.cpp b/include/fmt/test.cpp index 405299fb..631166fb 100644 --- a/include/fmt/test.cpp +++ b/include/fmt/test.cpp @@ -293,7 +293,7 @@ inline size_t store_format_entry(void* buf, const S& format_str, Args&&... args) template inline void print_format_entry(basic_format_entry& entry) { auto& full_entry = static_cast&>(entry); - vprint(entry.format_, {entry.desc_, full_entry.arg_store_.data_.args_}); ///// args_ or args + 1 depends on desc_ & detail::has_named_args_bit + vprint(entry.format_, {entry.desc_, &full_entry.arg_store_.data_.args_[entry.desc_ & fmt::detail::has_named_args_bit ? 1 : 0]}); entry.destruct(); }