Skip to content

Commit 480cf38

Browse files
Fix PROCESS_FIELDS to handle empty arguments (alibaba#1128) (alibaba#1129) (alibaba#1130)
Fix PROCESS_FIELDS to handle empty arguments Co-authored-by: NewbieOrange <NewbieOrange@users.noreply.github.com>
1 parent 0f1bb73 commit 480cf38

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rpc/serialize.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,10 +278,10 @@ namespace rpc
278278
ValueType m_checksum;
279279
};
280280

281-
#define PROCESS_FIELDS(...) \
282-
template<typename AR> \
283-
void process_fields(AR& ar) { \
284-
return reduce(ar, __VA_ARGS__); \
281+
#define PROCESS_FIELDS(...) \
282+
template<typename AR> \
283+
void process_fields(AR& ar) { \
284+
return reduce(ar, ## __VA_ARGS__); \
285285
}
286286

287287
template<typename K, typename V>

0 commit comments

Comments
 (0)