From 8c552d3466189f831b46b10ab24cf9719bf204b6 Mon Sep 17 00:00:00 2001 From: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com> Date: Tue, 22 Dec 2015 11:46:43 -0500 Subject: [PATCH] default_types: virtualize msgpack_unpack This is needed to override this method in inheriting. --- include/opendht/default_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/opendht/default_types.h b/include/opendht/default_types.h index 33a2a302..04fb0361 100644 --- a/include/opendht/default_types.h +++ b/include/opendht/default_types.h @@ -166,7 +166,7 @@ public: #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.via.array.size < 2) throw msgpack::type_error(); @@ -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.via.array.size < 2) throw msgpack::type_error(); -- GitLab