Supported any names for MSGPACK_DEFINE_MAP using MSGPACK_NVP.

This commit is contained in:
Takatoshi Kondo
2016-10-30 16:25:19 +09:00
parent c30962da25
commit e61cd76310
2 changed files with 31 additions and 0 deletions

View File

@@ -42,6 +42,7 @@
}
#define MSGPACK_BASE_ARRAY(base) (*const_cast<base *>(static_cast<base const*>(this)))
#define MSGPACK_NVP(name, value) (name) (value)
#define MSGPACK_DEFINE_MAP_EACH_PROC(r, data, elem) \
MSGPACK_PP_IF( \