Make some fields public for use in fmtlog

This commit is contained in:
yumeyao 2021-02-08 09:55:57 +08:00
parent 7bdf0628b1
commit 9e0a7ef7b7

View File

@ -1565,6 +1565,7 @@ class format_arg_store
using value_type = conditional_t<is_packed, detail::value<Context>,
basic_format_arg<Context>>;
public:
detail::arg_data<value_type, typename Context::char_type, num_args,
num_named_args>
data_;
@ -1578,7 +1579,6 @@ class format_arg_store
? static_cast<unsigned long long>(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 <typename Context> class basic_format_args {
return static_cast<detail::type>((desc_ >> shift) & mask);
}
public:
basic_format_args(unsigned long long desc,
const detail::value<Context>* 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) {}
/**