So I have a LinkedQueue which is a queue that is implemented by LinkedList.
I need to overload the = operator for LinkedQueue.
LinkedQueue& LinkedQueue::operator=(LinkedQueue& queue)
{
return *this;
}
As you can see Linked Queue is const...the problem is that in order to copy the content from queue to this.queue I need to dequeue from queue..and its not letting me because Queue is const and dequeue is not...So i'm stuck
thanks