Created on 2008-08-30.00:00:00 last changed 162 months ago
Proposed resolution:
We need to change the Requires clause of the move constructor:
shared_ptr(shared_ptr&& r); template<class Y> shared_ptr(shared_ptr<Y>&& r);
RequiresRemarks:For the second constructor Y* shall be convertible to T*.The second constructor shall not participate in overload resolution unless Y* is convertible to T*.
in order to actually make the example in 687 compile (it now resolves to the move constructor).
[ 2009-07 Frankfurt ]
Moved to Ready.
This issue now represents the favored format for specifying constrained templates.
[ San Francisco: ]
We might be able to move this to NAD, Editorial once shared_ptr is conceptualized, but we want to revisit this issue to make sure.
History | |||
---|---|---|---|
Date | User | Action | Args |
2011-08-23 20:07:26 | admin | set | status: wp -> c++11 |
2010-10-21 18:28:33 | admin | set | messages: + msg4176 |
2010-10-21 18:28:33 | admin | set | messages: + msg4175 |
2010-10-21 18:28:33 | admin | set | messages: + msg4174 |
2008-08-30 00:00:00 | admin | create |