
18 Dec
2007
18 Dec
'07
2:56 p.m.
Shared pointer question: func(...) { shared_pointer<foo> p; p = list<shared_pointer<foo> >.pop_front(); p = list<shared_pointer<foo> >.pop_front(); } Will this cause a memory leak? Do I need to do a delete in between, or does the act of reassignment cause the prior object to be dereferenced? Thanks, Elli Barasch