From c7c1312db2ef886326c09005d19ac19b79b84f23 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') 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