Next:
Debugging question 5
Up:
Debugging question 4
Previous:
Debugging question 4
Contents
Solution
Since
method
is passed its argument by reference, it changes the original parameter.
t
has type
string&
so it is just a reference to
s
; so all along
t
and
s
actually share the same memory.
Leo Liberti 2008-01-12