diff options
Diffstat (limited to 'cpp/pack.hpp')
-rw-r--r-- | cpp/pack.hpp | 7 |
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 |