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