Re: [Boost-users] Reference count in shared_ptr

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.
5623
Age (days ago)
5623
Last active (days ago)
0 comments
1 participants
participants (1)
-
Daniele Barzotti