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


From the code yoiu have posted I cannot see your problem. LinkedQueue is not const in this example. Please post the exact code which is giving you your problem.