mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 10:19:51 +00:00
msgpack::pack is not obsolete
This commit is contained in:
parent
4f2755366f
commit
a8545b49c9
2 changed files with 7 additions and 10 deletions
|
|
@ -112,6 +112,13 @@ private:
|
|||
};
|
||||
|
||||
|
||||
template <typename Stream, typename T>
|
||||
inline void pack(Stream& s, const T& v)
|
||||
{
|
||||
packer<Stream>(s).pack(v);
|
||||
}
|
||||
|
||||
|
||||
#define msgpack_pack_inline_func(name) \
|
||||
template <typename Stream> \
|
||||
inline void packer<Stream>::_pack ## name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue