diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-16 07:06:42 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-05-16 07:06:53 +0200 |
commit | c7c1312db2ef886326c09005d19ac19b79b84f23 (patch) | |
tree | 71f4b9723c34a2b63f9db8756ff6ed80893aac9b /sibs | |
parent | 8315157349bc1a98613bcc9c6e3a6bec532b4691 (diff) |
Add move constructor to serializer1.0.1
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) |