On Oct 22, 8:31 am, Ian Collins <ian-n...@hotmail.com> wrote:
> On 10/22/10 07:52 PM, Pallav singh wrote:
> > i want to implement shared ptr for my project.
> Why don't you just use tr1::shared_ptr?
> > Q How can we restrict my shared_ptr to certain class object ? only
> > allowed class object should be only using it.
> > for others shared_ptr should fail.
> Why?
One obvious reason might be to use an invasive implementation.
This eliminates one major source of problems with
{boost,tr1,std}::shared_ptr.
--
James Kanze
|