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));