gcc/libstdc++-v3/include
Ville Voutilainen 1308676957 Implement 2801, Default-constructibility of unique_ptr.
* include/bits/unique_ptr.h (__uniq_ptr_impl::_DeleterConstraint): New.
(unique_ptr::_DeleterConstraint): Likewise.
(unique_ptr()): Constrain.
(unique_ptr(pointer)): Likewise.
(unique_ptr(nullptr_t)): Likewise.
(unique_ptr<_Tp[], _Dp>::_DeleterConstraint): New.
(unique_ptr<_Tp[], _Dp>::unique_ptr()): Constrain.
(unique_ptr<_Tp[], _Dp>::unique_ptr(_Up)): Likewise.
(unique_ptr<_Tp[], _Dp>::unique_ptr(nullptr_t)): Likewise.
* testsuite/20_util/unique_ptr/assign/48635_neg.cc: Adjust.
* testsuite/20_util/unique_ptr/cons/cv_qual_neg.cc: Likewise.
* testsuite/20_util/unique_ptr/cons/default.cc: New.
* testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Adjust.

From-SVN: r244054
2017-01-04 15:21:02 +02:00
..
backward Update copyright years. 2017-01-01 13:07:43 +01:00
bits Implement 2801, Default-constructibility of unique_ptr. 2017-01-04 15:21:02 +02:00
c Update copyright years. 2017-01-01 13:07:43 +01:00
c_compatibility Update copyright years. 2017-01-01 13:07:43 +01:00
c_global Update copyright years. 2017-01-01 13:07:43 +01:00
c_std Update copyright years. 2017-01-01 13:07:43 +01:00
debug Update copyright years. 2017-01-01 13:07:43 +01:00
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental Update copyright years. 2017-01-01 13:07:43 +01:00
ext Update copyright years. 2017-01-01 13:07:43 +01:00
parallel Update copyright years. 2017-01-01 13:07:43 +01:00
precompiled Update copyright years. 2017-01-01 13:07:43 +01:00
profile Update copyright years. 2017-01-01 13:07:43 +01:00
std Support exception propagation without lock-free atomic int 2017-01-04 10:54:59 +00:00
tr1 Update copyright years. 2017-01-01 13:07:43 +01:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.am Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.in Split <functional> into smaller pieces 2016-10-21 16:32:25 +01:00