Boost logo

Boost :

Subject: Re: [boost] [smart_ptr] Interest in the missing smart pointer (that can target the stack)
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2016-01-28 20:35:36


On Thu, Jan 28, 2016 at 12:20 PM, Noah <duneroadrunner_at_[hidden]> wrote:

> > registered_ptr can point to stack allocated objects (just like native C++
> > pointers can),
>

shared_ptr can point to stack-allocated objects, too. As a benefit, if you
use shared_ptr to point at a stack-allocated object, you also get the
weak_ptr functionality.

Emil


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk