summaryrefslogtreecommitdiff
path: root/include/keymaster/serializable.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/keymaster/serializable.h')
-rw-r--r--include/keymaster/serializable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/keymaster/serializable.h b/include/keymaster/serializable.h
index f043574..09e98b1 100644
--- a/include/keymaster/serializable.h
+++ b/include/keymaster/serializable.h
@@ -22,6 +22,7 @@
#include <string.h>
#include <iterator>
+#include <utility>
#include <keymaster/UniquePtr.h>
#include <keymaster/logger.h>
@@ -251,14 +252,14 @@ class Buffer : public Serializable {
Buffer() : buffer_(nullptr), buffer_size_(0), read_position_(0), write_position_(0) {}
explicit Buffer(size_t size) : buffer_(nullptr) { Reinitialize(size); }
Buffer(const void* buf, size_t size) : buffer_(nullptr) { Reinitialize(buf, size); }
- Buffer(Buffer&& b) { *this = move(b); }
+ Buffer(Buffer&& b) { *this = std::move(b); }
Buffer(const Buffer&) = delete;
~Buffer() { Clear(); }
Buffer& operator=(Buffer&& other) {
if (this == &other) return *this;
- buffer_ = move(other.buffer_);
+ buffer_ = std::move(other.buffer_);
buffer_size_ = other.buffer_size_;
other.buffer_size_ = 0;
read_position_ = other.read_position_;