mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-05-29 07:25:55 +02:00
Added char* support.
This commit is contained in:
parent
fa231139d7
commit
023f81ae9c
@ -53,6 +53,22 @@ inline void operator<< (object& o, const char* v)
|
|||||||
o.via.str.size = static_cast<uint32_t>(size);
|
o.via.str.size = static_cast<uint32_t>(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename Stream>
|
||||||
|
inline packer<Stream>& operator<< (packer<Stream>& o, char* v)
|
||||||
|
{
|
||||||
|
return msgpack::operator<<(o, static_cast<const char*>(v));
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void operator<< (object::with_zone& o, char* v)
|
||||||
|
{
|
||||||
|
msgpack::operator<<(o, static_cast<const char*>(v));
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void operator<< (object& o, char* v)
|
||||||
|
{
|
||||||
|
msgpack::operator<<(o, static_cast<const char*>(v));
|
||||||
|
}
|
||||||
|
|
||||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||||
|
|
||||||
} // namespace msgpack
|
} // namespace msgpack
|
||||||
|
@ -31,6 +31,11 @@ packer<Stream>& operator<< (packer<Stream>& o, const char* v);
|
|||||||
void operator<< (object::with_zone& o, const char* v);
|
void operator<< (object::with_zone& o, const char* v);
|
||||||
void operator<< (object& o, const char* v);
|
void operator<< (object& o, const char* v);
|
||||||
|
|
||||||
|
template <typename Stream>
|
||||||
|
packer<Stream>& operator<< (packer<Stream>& o, char* v);
|
||||||
|
void operator<< (object::with_zone& o, char* v);
|
||||||
|
void operator<< (object& o, char* v);
|
||||||
|
|
||||||
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
||||||
|
|
||||||
} // namespace msgpack
|
} // namespace msgpack
|
||||||
|
Loading…
x
Reference in New Issue
Block a user