diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-16 07:06:42 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:16:10 +0200 |
commit | 78b1deca8abeefbcb8f669deedd6bb21bf9ac872 (patch) | |
tree | 1d791ff5374ebe0b57e1dcc49f716de2de501559 /sibs | |
parent | 1c598695e433b9ac65887d156fcd78b10e6269de (diff) |
Add move constructor to serializer
Diffstat (limited to 'sibs')
-rw-r--r-- | sibs/SafeSerializer.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 <typename T> void add(const T &data) |