mirror of
https://github.com/msgpack/msgpack-c.git
synced 2025-03-19 04:52:59 +01:00
msgpack::pack is not obsolete
This commit is contained in:
parent
879c70f93a
commit
6fc38d1669
@ -110,9 +110,6 @@ bool operator!=(const object x, const object y);
|
|||||||
std::ostream& operator<< (std::ostream& s, const object o);
|
std::ostream& operator<< (std::ostream& s, const object o);
|
||||||
|
|
||||||
|
|
||||||
template <typename Stream, typename T>
|
|
||||||
inline void pack(Stream& s, const T& v);
|
|
||||||
|
|
||||||
template <typename Stream, typename T>
|
template <typename Stream, typename T>
|
||||||
packer<Stream>& operator<< (packer<Stream>& o, const T& v);
|
packer<Stream>& operator<< (packer<Stream>& o, const T& v);
|
||||||
|
|
||||||
@ -238,13 +235,6 @@ inline void pack(packer<Stream>& o, const T& v)
|
|||||||
o.pack(v);
|
o.pack(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
// obsolete
|
|
||||||
template <typename Stream, typename T>
|
|
||||||
inline void pack(Stream& s, const T& v)
|
|
||||||
{
|
|
||||||
packer<Stream>(s).pack(v);
|
|
||||||
}
|
|
||||||
|
|
||||||
// obsolete
|
// obsolete
|
||||||
template <typename Stream, typename T>
|
template <typename Stream, typename T>
|
||||||
inline void pack_copy(packer<Stream>& o, T v)
|
inline void pack_copy(packer<Stream>& o, T v)
|
||||||
|
@ -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) \
|
#define msgpack_pack_inline_func(name) \
|
||||||
template <typename Stream> \
|
template <typename Stream> \
|
||||||
inline void packer<Stream>::_pack ## name
|
inline void packer<Stream>::_pack ## name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user