Section: 20.2 [memory] Status: NAD Concepts Submitter: Alisdair Meredith Opened: 2009-03-11 Last modified: 2016-01-28
Priority: Not Prioritized
View all other issues in [memory].
View all issues with NAD Concepts status.
Discussion:
Addresses UK 209 [CD1]
Smart pointers cannot be used in constrained templates.
[ Summit: ]
We look forward to a paper on this topic. We recommend no action until a paper is available. We understand that a paper is forthcoming.
[ Peter Dimov adds: ]
shared_ptr<T>andweak_ptr<T>support all typesTfor whichT*is valid. In other words, a possible (partial) resolution is to change classTtoPointeeType Tforshared_ptr,weak_ptrand possiblyenable_shared_from_this.
Proposed resolution: