msgpack::pack is not obsolete

This commit is contained in:
frsyuki
2009-03-01 01:31:12 +09:00
parent 4f2755366f
commit a8545b49c9
2 changed files with 7 additions and 10 deletions

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