Skip to content

Commit 4763ebb

Browse files
authored
Fix PROCESS_FIELDS to handle empty arguments (alibaba#1128)
Fix PROCESS_FIELDS to handle empty arguments
1 parent 35f338f commit 4763ebb

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)