N3840: A Proposal for the World’s Dumbest Smart Pointer, v3 -- Walter E. Brown
A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3840
Date: 2014-01-01
A Proposal for the World’s Dumbest Smart Pointer, v3
by Walter E. Brown
Excerpt:
This paper proposes
observer_ptr
, a (not very) smart pointer type that takes no ownership responsibility for its pointees, i.e., for the objects it observes. As such, it is intended as a near drop-in replacement for raw pointer types, with the advantage that, as a vocabulary type, it indicates its intended use without need for detailed analysis by code readers.