7663cae227
* include/bits/shared_ptr.h (_Assignable): New alias template. (shared_ptr::operator=(const shared_ptr<_Tp1>&)) (shared_ptr::operator=(shared_ptr<_Tp1>&&)) (shared_ptr::operator=(unique_ptr<_Tp1>&&)): Constrain with _Assignable. * include/bits/shared_ptr_base.h (_Assignable): New alias template. (__shared_ptr::operator=(const __shared_ptr<_Tp1>&)) (__shared_ptr::operator=(__shared_ptr<_Tp1>&&)) (__shared_ptr::operator=(unique_ptr<_Tp1>&&)): Constrain with _Assignable. (__shared_ptr::reset(_Tp1*), __shared_ptr::reset(_Tp1*, _Deleter)) (__shared_ptr::reset(_Tp1*, _Deleter, _Alloc)): Constrain with _Convertible. * testsuite/20_util/shared_ptr/cons/43820_neg.cc: Change dg-error to match on any line. * testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise. * testsuite/20_util/shared_ptr/assign/sfinae.cc: New test. * testsuite/20_util/shared_ptr/assign/shared_ptr_neg.cc: Update expected errors. Remove unnecessary code. * testsuite/20_util/shared_ptr/modifiers/reset_sfinae.cc: New test. From-SVN: r239898 |
||
---|---|---|
.. | ||
39405.cc | ||
43820_neg.cc | ||
46910.cc | ||
51365.cc | ||
52924.cc | ||
55123.cc | ||
58659.cc | ||
58839.cc | ||
61036.cc | ||
alias.cc | ||
alloc_min.cc | ||
alloc.cc | ||
auto_ptr_neg.cc | ||
auto_ptr.cc | ||
constexpr.cc | ||
copy.cc | ||
default.cc | ||
move.cc | ||
noexcept_move_construct.cc | ||
nullptr.cc | ||
pointer.cc | ||
unique_ptr_array.cc | ||
unique_ptr_deleter_ref_1.cc | ||
unique_ptr_deleter_ref_2.cc | ||
unique_ptr_deleter.cc | ||
unique_ptr_neg.cc | ||
unique_ptr.cc | ||
void_neg.cc | ||
weak_ptr_expired.cc | ||
weak_ptr.cc |