msgpack / msgpack-c

MessagePack implementation for C and C++ / msgpack.org[C/C++]
Other
3.03k stars 883 forks source link

About MSGPACK_DEFINE_MAP Limit! #1042

Closed brinkqiang closed 1 year ago

brinkqiang commented 1 year ago

When I was using MSGPACK_DEFINE_MAP, I found that there is a maximum number limit. only define a maximum of 64 fields. If you add more fields, an error will be reported. Is there any way to break through this limit?

brinkqiang commented 1 year ago

@redboltz redboltz

redboltz commented 1 year ago

It seems that the limitation is caused by https://www.boost.org/doc/libs/1_80_0/libs/preprocessor/doc/ref/limit_tuple.html

You can expand it as -DBOOST_PP_LIMIT_TUPLE=256 macro definition.