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.
1026. Smart pointers need to be concept-constrained templatesSection: 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:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4