<< recommended changes >>
-
Define MSGPACK_DISABLE_LEGACY_NIL, then
msgpack::type::nil
is replaced by withmsgpack::type::nil_t
(#408, #411, #412).
Replacemsgpack::type::nil
withmsgpack::type::nil_t
in client codes.
msgpack::type::nil
will be removed on the version 2.0.0. -
Define MSGPACK_DISABLE_LEGACY_CONVERT, then
msgpack::object::convert(T*)
is removed (#410).
Replace callingmsgpack::bojectconvert(T*)
withmsgpack::bojectconvert(T&)
in client codes as follows:int i; obj.convert(&i); // before
int i; obj.convert(i); // after
msgpack::object::convert(T*)
will be removed on the version 2.0.0.
Define the macros above as follows when you compile C++ codes that use msgpack-c:
g++ -Ipath_to_msgpack/include -DMSGPACK_DISABLE_LEGACY_NIL -DMSGPACK_DISABLE_LEGACY_CONVERT your_code.cpp
You can compile existing codes without defining macros above but I recommend defining them and updating your codes to fix the issues #408, #411, #412, #399, and #410. It is also a good preparation for the version 2.0.0.