Skip to content

Commit

Permalink
Trying to fix Linux/x64 jobs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Mar 18, 2024
1 parent 7e2b8d0 commit 9dd5738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/tree-cbor.cpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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::string>(std::forward<std::string>(data))),
data(std::make_shared<std::string>(std::move(data))),
slice_offset(0),
slice_length(this->data->size())
{
Expand Down
5 changes: 5 additions & 0 deletions include/tree-cbor.hpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public:
*/
explicit Reader(std::string &&data);

/**
* Destructor.
*/
virtual ~Reader() = default;

private:

/**
Expand Down

0 comments on commit 9dd5738

Please sign in to comment.