summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/msgpack/type/nil.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpp/msgpack/type/nil.hpp b/cpp/msgpack/type/nil.hpp
index e58bc9d..f44e45e 100644
--- a/cpp/msgpack/type/nil.hpp
+++ b/cpp/msgpack/type/nil.hpp
@@ -51,6 +51,14 @@ inline void operator<< (object::with_zone& o, type::nil v)
{ static_cast<object&>(o) << v; }
+template <>
+inline void object::as<void>() const
+{
+ msgpack::type::nil v;
+ convert(&v);
+}
+
+
} // namespace msgpack
#endif /* msgpack/type/nil.hpp */