|
Boost : |
Subject: Re: [boost] Looking for thoughts on a new smart pointer: shared_ptr_nonnull
From: Rhys Ulerich (rhys.ulerich_at_[hidden])
Date: 2013-10-02 13:33:36
> Anyway, I think, such a pointer does not behave like a real pointer,
> so it shouldn't be called as such. It looks more like a reference,
> except that the referred object is accessed through operator->. Maybe
> it should be called shared_ref because of it. Thinking about it this
> way, there is no need for reset() or constructors from pointers - only
> assignment, emplace() and forwarding constructors.
+1.
- Rhys
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk