The to/from_msgpack functions only work for standard typization of nlohmann::basic_json.
Using nlohmann::basic_json<std::map, std::vector, std::string, bool, std::int32_t, std::uint32_t, float> produces the following error:
parse error at 1472: expected a MessagePack string; last byte: 0x68
The error occurs when I put an object into a msgpack, send it over the network, then reconstruct the object using from_msgpack. When I use nlohmann::json instead, everything works fine.
System is linux, compiler is g++, version 7.2.1, nlohmann::json is version 3.1.2.
The to/from_msgpack functions only work for standard typization of nlohmann::basic_json.
Using nlohmann::basic_json<std::map, std::vector, std::string, bool, std::int32_t, std::uint32_t, float> produces the following error:
parse error at 1472: expected a MessagePack string; last byte: 0x68
The error occurs when I put an object into a msgpack, send it over the network, then reconstruct the object using from_msgpack. When I use nlohmann::json instead, everything works fine.
System is linux, compiler is g++, version 7.2.1, nlohmann::json is version 3.1.2.