summaryrefslogtreecommitdiff
path: root/cpp/pack.hpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2009-03-01 01:31:12 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2009-03-01 01:31:12 +0900
commita8545b49c9da6ca75374973751e519d4da0bbf20 (patch)
treea3e881964562fb54f26aa4d281f367412acb11a7 /cpp/pack.hpp
parent4f2755366faef06ebf9bff17ea15e2a53ec15649 (diff)
downloadmsgpack-python-a8545b49c9da6ca75374973751e519d4da0bbf20.tar.gz
msgpack::pack is not obsolete
Diffstat (limited to 'cpp/pack.hpp')
-rw-r--r--cpp/pack.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/pack.hpp b/cpp/pack.hpp
index 257ccb6..c8e37eb 100644
--- a/cpp/pack.hpp
+++ b/cpp/pack.hpp
@@ -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