r273937 - in /trunk/libstdc++-v3: ChangeLog inc...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Jul 31 14:38:00 GMT 2019


Author: redi
Date: Wed Jul 31 14:38:26 2019
New Revision: 273937

URL: https://gcc.gnu.org/viewcvs?rev=273937&root=gcc&view=rev
Log:
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.

Added:
    trunk/libstdc++-v3/testsuite/20_util/unique_ptr/assign/91308.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/unique_ptr.h



More information about the Libstdc++-cvs mailing list