gcc/libstdc++-v3/include
Jonathan Wakely 61bf02e007 re PR libstdc++/58659 (Construction of shared_ptr from unique_ptr mismatches new/delete and std::allocator for __shared_ptr_count)
PR libstdc++/58659
	* include/bits/shared_ptr_base.h (__shared_count::__shared_count(P,D)):
	Delegate to constructor taking allocator.
	(__shared_count::_S_create_from_up): Inline into ...
	(__shared_count::__shared_count(unique_ptr<Y,D>&&): Here. Use
	std::conditional instead of constrained overloads. Allocate memory
	using the allocator type that will be used for deallocation.
	* testsuite/20_util/shared_ptr/cons/58659.cc: New.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust.

From-SVN: r203274
2013-10-08 13:33:37 +01:00
..
backward Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
bits re PR libstdc++/58659 (Construction of shared_ptr from unique_ptr mismatches new/delete and std::allocator for __shared_ptr_count) 2013-10-08 13:33:37 +01:00
c Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
c_compatibility re PR libstdc++/56111 ({float,double,long double} complex not accepted anymore) 2013-02-13 21:58:53 +00:00
c_global re PR libstdc++/58625 (std::signbit always converts to double) 2013-10-06 13:44:47 +00:00
c_std re PR libstdc++/57691 (freestanding libstdc++ has compile error) 2013-06-24 13:46:58 +00:00
debug re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-25 20:28:12 +00:00
decimal Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
ext Print additional info when various out-of-range conditions are detected. 2013-09-21 19:04:13 -07:00
parallel algobase.h (mismatch, equal): Provide parallel version for N3671 overloads. 2013-10-01 19:35:01 +00:00
precompiled Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
profile re PR libstdc++/58338 (Add noexcept to functions with a narrow contract) 2013-09-25 20:28:12 +00:00
std re PR libstdc++/58604 (Text truncation in comments of /usr/include/c++/4.7/vector) 2013-10-03 20:33:05 +00:00
tr1 re PR c++/54537 (undiagnosed using-declaration conflicting with used function) 2013-08-01 14:24:37 -05:00
tr2 Update copyright in libstdc++-v3. 2013-02-03 17:54:05 +00:00
Makefile.am predefined_ops.h: New. 2013-09-27 21:17:36 +00:00
Makefile.in predefined_ops.h: New. 2013-09-27 21:17:36 +00:00