From 78b1deca8abeefbcb8f669deedd6bb21bf9ac872 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 May 2018 07:06:42 +0200 Subject: Add move constructor to serializer --- sibs/SafeSerializer.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sibs/SafeSerializer.hpp') diff --git a/sibs/SafeSerializer.hpp b/sibs/SafeSerializer.hpp index 379b7c8..9576053 100644 --- a/sibs/SafeSerializer.hpp +++ b/sibs/SafeSerializer.hpp @@ -16,6 +16,10 @@ namespace sibs DISABLE_COPY(SafeSerializer); public: SafeSerializer(){} + SafeSerializer(SafeSerializer &&other) + { + buffer = std::move(other.buffer); + } template void add(const T &data) -- cgit v1.2.3