From fd5ccce9193a7939df1cfc2c45334e36163ebfd8 Mon Sep 17 00:00:00 2001 From: Tomasz Grabiec Date: Mon, 25 Jul 2016 17:12:53 +0200 Subject: [PATCH] serializer: Move skip() to serializer.hh It is part of the core API, like serialize() and deserialize(). --- serialization_visitors.hh | 5 ----- serializer.hh | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/serialization_visitors.hh b/serialization_visitors.hh index df9297f22e..88f2830e5a 100644 --- a/serialization_visitors.hh +++ b/serialization_visitors.hh @@ -86,9 +86,4 @@ size_type read_frame_size(Input& in) { return sz - sizeof(size_type); } -template -inline void skip(seastar::simple_input_stream& v, boost::type) { - return serializer::skip(v); -} - } diff --git a/serializer.hh b/serializer.hh index 68596d4318..82d0d74bd2 100644 --- a/serializer.hh +++ b/serializer.hh @@ -91,6 +91,11 @@ inline T deserialize(Input& in, boost::type t) { return serializer::read(in); }; +template +inline void skip(seastar::simple_input_stream& v, boost::type) { + return serializer::skip(v); +} + template size_type get_sizeof(const T& obj);