diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2019-07-31 15:38:26 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2019-07-31 15:38:26 +0100 |
commit | 949fdadb9d1ee6822672cecc06b78be362d2ddca (patch) | |
tree | 1fd650435a78fe8d0d8b0173d6b3972e65fc5053 /gcc/cp/lambda.c | |
parent | 208149b7201420d965991e08cb4e4c261171b0a2 (diff) | |
download | gcc-949fdadb9d1ee6822672cecc06b78be362d2ddca.zip gcc-949fdadb9d1ee6822672cecc06b78be362d2ddca.tar.gz gcc-949fdadb9d1ee6822672cecc06b78be362d2ddca.tar.bz2 |
PR libstdc++/91308 fix constraints on unique_ptr assignment
PR libstdc++/91308
* include/bits/unique_ptr.h (unique_ptr::__safe_conversion_up): Remove
constraints on deleter that should only apply to the constructor.
(unique_ptr<T[], D>::__safe_conversion_up): Likewise.
(unique_ptr<T[], D>::unique_ptr(unique_ptr<U, D>&&)): Restore
constraints on deleter here.
* testsuite/20_util/unique_ptr/assign/91308.cc: New test.
From-SVN: r273937
Diffstat (limited to 'gcc/cp/lambda.c')
0 files changed, 0 insertions, 0 deletions