
1 Oct
2009
1 Oct
'09
3:12 p.m.
On Thu 01/10/09 17:47 , Roman Perepelitsa wrote:
In this case, is 'delete' called twice for Impl2?
Yes. When you passed a pointer to shared_ptr, you don't own this pointer anymore, so you shouldn't delete it manually. Roman Perepelitsa.
Thanks Roman! Now I tested it on my skin! :-) Regards, Daniele.