This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of NAD Concepts status.
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 typesT
for whichT*
is valid. In other words, a possible (partial) resolution is to change classT
toPointeeType T
forshared_ptr
,weak_ptr
and possiblyenable_shared_from_this
.
Proposed resolution: