Fix handling of max packed arguments

This commit is contained in:
Victor Zverovich 2017-09-09 07:38:52 -07:00
parent 0cda806dcc
commit 534bff7d31

View File

@ -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)...}}) {}