|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-09-19 11:11:26
From: "Neal D. Becker" <nbecker_at_[hidden]>
> Is this usage of share_ptr valid?
>
> shared_ptr<X> x; // init to 0
> x.reset (new X); // later set to desired value
Yes.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk