mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-26 00:21:13 +00:00
Fix handling of max packed arguments
This commit is contained in:
parent
0cda806dcc
commit
534bff7d31
@ -1488,9 +1488,8 @@ class arg_store {
|
|||||||
Array data_;
|
Array data_;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static const uint64_t TYPES =
|
static const uint64_t TYPES = IS_PACKED ?
|
||||||
NUM_ARGS <= internal::MAX_PACKED_ARGS ?
|
internal::get_types<Args..., void>() : -static_cast<int64_t>(NUM_ARGS);
|
||||||
internal::get_types<Args..., void>() : -static_cast<int64_t>(NUM_ARGS);
|
|
||||||
|
|
||||||
arg_store(const Args &... args)
|
arg_store(const Args &... args)
|
||||||
: data_(Array{{internal::make_arg<IS_PACKED, Context>(args)...}}) {}
|
: data_(Array{{internal::make_arg<IS_PACKED, Context>(args)...}}) {}
|
||||||
|
Loading…
Reference in New Issue
Block a user