diff --git a/include/tree-cbor.cpp.inc b/include/tree-cbor.cpp.inc index 84eeddd..5f12921 100644 --- a/include/tree-cbor.cpp.inc +++ b/include/tree-cbor.cpp.inc @@ -17,7 +17,7 @@ Reader::Reader(const std::string &data) : Reader(std::string(data)) {} * a Reader representation that may be used to parse it. */ Reader::Reader(std::string &&data) : - data(std::make_shared(std::forward(data))), + data(std::make_shared(std::move(data))), slice_offset(0), slice_length(this->data->size()) { diff --git a/include/tree-cbor.hpp.inc b/include/tree-cbor.hpp.inc index 9c5632b..8c363f8 100644 --- a/include/tree-cbor.hpp.inc +++ b/include/tree-cbor.hpp.inc @@ -67,6 +67,11 @@ public: */ explicit Reader(std::string &&data); + /** + * Destructor. + */ + virtual ~Reader() = default; + private: /**