msgpack::pack is not obsolete

This commit is contained in:
frsyuki 2009-03-01 01:31:12 +09:00
parent 879c70f93a
commit 6fc38d1669
2 changed files with 7 additions and 10 deletions

View File

@ -110,9 +110,6 @@ bool operator!=(const object x, const object y);
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>
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);
}
// obsolete
template <typename Stream, typename T>
inline void pack(Stream& s, const T& v)
{
packer<Stream>(s).pack(v);
}
// obsolete
template <typename Stream, typename T>
inline void pack_copy(packer<Stream>& o, T v)

View File

@ -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