Skip to content
Snippets Groups Projects
Commit 8c552d34 authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

default_types: virtualize msgpack_unpack

This is needed to override this method in inheriting.
parent 439b7d96
No related branches found
No related tags found
No related merge requests found
...@@ -166,7 +166,7 @@ public: ...@@ -166,7 +166,7 @@ public:
#endif #endif
} }
void msgpack_unpack(msgpack::object o) virtual void msgpack_unpack(msgpack::object o)
{ {
if (o.type != msgpack::type::ARRAY) throw msgpack::type_error(); if (o.type != msgpack::type::ARRAY) throw msgpack::type_error();
if (o.via.array.size < 2) throw msgpack::type_error(); if (o.via.array.size < 2) throw msgpack::type_error();
...@@ -216,7 +216,7 @@ public: ...@@ -216,7 +216,7 @@ public:
} }
} }
void msgpack_unpack(msgpack::object o) virtual void msgpack_unpack(msgpack::object o)
{ {
if (o.type != msgpack::type::ARRAY) throw msgpack::type_error(); if (o.type != msgpack::type::ARRAY) throw msgpack::type_error();
if (o.via.array.size < 2) throw msgpack::type_error(); if (o.via.array.size < 2) throw msgpack::type_error();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment