Subj : STL stack.pop() question To : borland.public.cpp.borlandcpp From : KonZa Date : Tue Jun 29 2004 01:09 pm sorry if this is not the appropiate place to post this..but its short anyway.. hi there all you all. I in a dilema here... stack my_stack; my_stack.push(employee("john1")); my_stack.push(employee("john2")); employee i = my_stack.top(); my_stack.pop(); my_stack.pop(); My question is how 'i' is assigned to the top of the stack since the 'top' method return a reference. what is the mechanism here? copy constructor? thanks in advance. -- [Tío konZa] .