mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-11-11 00:44:49 +01:00
Fixed #243.
std::vector<unsigned char> and std::array<unsigned char> are mapped to BIN. std::vector<uint8_t> and std::array<uint8_t> are mapped to BIN if uint8_t is the same type of unsigned char, otherwise mapped to ARRAY. Added array_ref. When client wraps BIN mapped types above with array_ref as msgpack::type::array_ref<std::vector<char> >, the type is mapped to ARRAY.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "cpp_config.hpp"
|
||||
#include "adaptor/array_ref.hpp"
|
||||
#include "adaptor/bool.hpp"
|
||||
#include "adaptor/char_ptr.hpp"
|
||||
#include "adaptor/deque.hpp"
|
||||
@@ -17,6 +18,7 @@
|
||||
#include "adaptor/vector.hpp"
|
||||
#include "adaptor/vector_bool.hpp"
|
||||
#include "adaptor/vector_char.hpp"
|
||||
#include "adaptor/vector_unsigned_char.hpp"
|
||||
#include "adaptor/msgpack_tuple.hpp"
|
||||
#include "adaptor/define.hpp"
|
||||
|
||||
@@ -29,6 +31,7 @@
|
||||
|
||||
#include "adaptor/cpp11/array.hpp"
|
||||
#include "adaptor/cpp11/array_char.hpp"
|
||||
#include "adaptor/cpp11/array_unsigned_char.hpp"
|
||||
#include "adaptor/cpp11/forward_list.hpp"
|
||||
#include "adaptor/cpp11/shared_ptr.hpp"
|
||||
#include "adaptor/cpp11/tuple.hpp"
|
||||
|
||||
Reference in New Issue
Block a user