Hi I'm writing a copy constructor for a queue class but for some reason this code makes both the front and capacity of the copy the same value. This doesn't make any sense to me. Am I missing something?
Here we would expect q1.capacity() = q2.capacity() = 8 and q1.front() = q2.front() = 1
But for some reason I'm getting q1.capacity() = 8 q1.front() = 1 q2.capacity() = 1 q2.front() = 1