From 9e0a7ef7b7ef4ff536de0aff0fbfff646046f88d Mon Sep 17 00:00:00 2001 From: yumeyao Date: Mon, 8 Feb 2021 09:55:57 +0800 Subject: [PATCH] Make some fields public for use in fmtlog --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 0a81e0cc..b081dc46 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1565,6 +1565,7 @@ class format_arg_store using value_type = conditional_t, basic_format_arg>; + public: detail::arg_data data_; @@ -1578,7 +1579,6 @@ class format_arg_store ? static_cast(detail::has_named_args_bit) : 0); - public: format_arg_store(const Args&... args) : #if FMT_GCC_VERSION && FMT_GCC_VERSION < 409 @@ -1857,13 +1857,13 @@ template class basic_format_args { return static_cast((desc_ >> shift) & mask); } + public: basic_format_args(unsigned long long desc, const detail::value* values) : desc_(desc), values_(values) {} basic_format_args(unsigned long long desc, const format_arg* args) : desc_(desc), args_(args) {} - public: basic_format_args() : desc_(0) {} /**