diff --git a/include/Node/Node.hpp b/include/Node/Node.hpp index e606e1142..24358a161 100755 --- a/include/Node/Node.hpp +++ b/include/Node/Node.hpp @@ -66,7 +66,7 @@ Node::Node(const std::string& id, T&& data) noexcept { this->userId = id; // the userid is set as sha512 hash of the user provided id setId(id); - std::swap(this->data, data); + this->data = std::move(data); } template