Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

shared_ptr<T> vs intrusive_ptr<T>

19 views
Skip to first unread message

Pallav singh

unread,
Apr 28, 2009, 1:14:48 PM4/28/09
to
Hi All ,

what is the difference between shared_ptr<T> and intrusive_ptr<T> in
Boost smart pointers ?

Thanks
Pallav singh

Noah Roberts

unread,
Apr 28, 2009, 1:24:27 PM4/28/09
to
Pallav singh wrote:
> Hi All ,
>
> what is the difference between shared_ptr<T> and intrusive_ptr<T> in
> Boost smart pointers ?

intrusive_ptr has requirements with regard to T such that it actually
tracks references in the objects pointed to.

0 new messages