Title
Smart pointers need to be concept-constrained templates
Status
nad concepts
Section
[memory]
Submitter
Alisdair Meredith

Created on 2009-03-11.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

[ Peter Dimov adds: ]

shared_ptr<T> and weak_ptr<T> support all types T for which T* is valid. In other words, a possible (partial) resolution is to change class T to PointeeType T for shared_ptr, weak_ptr and possibly enable_shared_from_this.

Date: 2010-10-21.18:28:33

[ 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.

Date: 2012-10-21.13:19:07

Addresses UK 209 [CD1]

Smart pointers cannot be used in constrained templates.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg371
2010-10-21 18:28:33adminsetmessages: + msg370
2009-03-11 00:00:00admincreate