mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-28 23:24:11 +02:00
Fixed nonnull warnings on gcc 7.1.
This commit is contained in:
parent
7214b4c73f
commit
bd511a4bd1
@ -45,6 +45,13 @@ struct convert<std::array<char, N>> {
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct convert<std::array<char, 0>> {
|
||||
msgpack::object const& operator()(msgpack::object const& o, std::array<char, 0>&) const {
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <std::size_t N>
|
||||
struct pack<std::array<char, N>> {
|
||||
template <typename Stream>
|
||||
|
@ -45,6 +45,13 @@ struct convert<std::array<unsigned char, N>> {
|
||||
}
|
||||
};
|
||||
|
||||
template <>
|
||||
struct convert<std::array<unsigned char, 0>> {
|
||||
msgpack::object const& operator()(msgpack::object const& o, std::array<unsigned char, 0>&) const {
|
||||
return o;
|
||||
}
|
||||
};
|
||||
|
||||
template <std::size_t N>
|
||||
struct pack<std::array<unsigned char, N>> {
|
||||
template <typename Stream>
|
||||
|
Loading…
x
Reference in New Issue
Block a user