28 Apr
2005
28 Apr
'05
10:18 a.m.
David Gruener wrote:
Hello,
thanks for your answers. Yes, of course, i looked at the boost smart pointers. But, well, isn't a shared_ptr a shared_ptr because it shares ownership (via ref. counting)? :]
Only if you pass it to another object. It it is a private shared_ptr then it gets automatically deleted, but won't get shared around. But what about scoped_ptr? Cheers Russell