From 05da5965103b91fe7e56d32a04c91148642da4c0 Mon Sep 17 00:00:00 2001 From: Alessandro Ferro <49845537+xfarrow@users.noreply.github.com> Date: Wed, 9 Jun 2021 09:11:32 +0200 Subject: [PATCH] Library 1 --- librerie/exercise1/list/list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librerie/exercise1/list/list.cpp b/librerie/exercise1/list/list.cpp index 3396301..05c06d1 100644 --- a/librerie/exercise1/list/list.cpp +++ b/librerie/exercise1/list/list.cpp @@ -167,7 +167,7 @@ void List::InsertAtBack(const Data& data){ template void List::InsertAtBack(Data&& data){ if(size == 0){ - InsertAtFront(data); + InsertAtFront(std::move(data)); } else{ struct Node* last = new Node(std::move(data));