msgpack-rpc and maps

14 views
Skip to first unread message

Paulo Silva

unread,
Nov 23, 2011, 2:49:42 AM11/23/11
to msgpa...@googlegroups.com
Hi, is it possible to send a mp::unordered_map or even an std::map
through msgpack? How?
Just tried to use the echo server core msgpack-rpc and that fails with
a no msgpack_pack on the map class.

Thank you,
Paulo

吴竑

unread,
Jan 12, 2014, 11:13:09 PM1/12/14
to msgpa...@googlegroups.com
I think, std::map can be supported by 'pack' while std::unordered_map can not.
If you use std::unordered_map, you can use 'pack_map' api to make it.

在 2011年11月23日星期三UTC+8下午3时49分42秒,paulo写道:
Reply all
Reply to author
Forward
0 new messages