File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -139,13 +139,9 @@ class packer {
139139 }
140140
141141 template <std::size_t size_type, uint64_t version,
142- std::uint64_t parent_tag = 0 , typename First, typename ... Args>
143- constexpr void STRUCT_PACK_INLINE serialize_many (const First &first_item,
144- const Args &...items) {
145- serialize_one<size_type, version, parent_tag>(first_item);
146- if constexpr (sizeof ...(items) > 0 ) {
147- serialize_many<size_type, version, parent_tag>(items...);
148- }
142+ std::uint64_t parent_tag = 0 , typename ... Args>
143+ constexpr void STRUCT_PACK_INLINE serialize_many (const Args &...items) {
144+ (serialize_one<size_type, version, parent_tag>(items), ...);
149145 }
150146 constexpr void STRUCT_PACK_INLINE write_padding (std::size_t sz) {
151147 if (sz > 0 ) {
You can’t perform that action at this time.
0 commit comments