Updated Linked List to use adapated protection levels
This commit is contained in:
parent
25091543a2
commit
23e7860e43
@ -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;
|
||||
}
|
||||
}
|
@ -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:
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user