Updated Linked List to use adapated protection levels

This commit is contained in:
Luke Else 2022-11-15 07:31:41 +00:00
parent 25091543a2
commit 23e7860e43
2 changed files with 2 additions and 4 deletions

View File

@ -49,7 +49,7 @@ namespace Datastructures {
}
//Add new node and set to tail.
(*mTail).mNext = std::make_shared<Nodes::LinkedListNode<T>>(value);
mTail = (*mTail).mNext;
(*mTail).next = std::make_shared<Nodes::LinkedListNode<T>>(value);
mTail = (*mTail).next;
}
}

View File

@ -9,8 +9,6 @@ namespace Datastructures {
public:
//Inherit Constructor and destructor from generic Undirectetd Node
using Generic::UndirectedNode<T, LinkedListNode<T>>::UndirectedNode;
template <typename T>
friend class LinkedList;
private:
};
}