
5 Apr
2011
5 Apr
'11
11:16 p.m.
Message du 06/04/11 00:36 De : "Phil Bouchard"
A : boost@lists.boost.org Copie à : Objet : Re: [boost] [shifted_ptr] Review Request
A smart pointer object has the count of the number of pointers pointing to the object. shifted_ptr<> also has a set counter; a set counter has the count of the number of pointers from the stack referencing to the set. Thus when no pointers from the stack are referencing the set anymore then the set is being destroyed instantly.
Are shifted_ptrs thread safe? Best, Vicente