gcc/libstdc++-v3/include/experimental
Jonathan Wakely f3070dab7a Make std::enable_shared_from_this cope with ambiguity
* include/backward/auto_ptr.h (__shared_ptr(auto_ptr&&)): Call
	_M_enable_shared_from_this_with instead of
	__enable_shared_from_this_helper.
	* include/bits/shared_ptr.h (__enable_shared_from_this_helper):
	Remove overload for std::enable_shared_from_this..
	(__enable_shared_from_this_base): Define friend function to select a
	std::enable_shared_from_this base class.
	* include/bits/shared_ptr_base.h (__enable_shared_from_this_helper):
	Remove all overloads.
	(__shared_ptr): Change all relevant constructors to call
	_M_enable_shared_from_this_with instead of
	__enable_shared_from_this_helper.
	(__shared_ptr::__efst_base_t, __shared_ptr::__has_efst_base): Helpers
	to detect accessible and unambiguous enable_shared_from_this bases.
	(__shared_ptr::_M_enable_shared_from_this_with): New function to
	replace __enable_shared_from_this_helper overloads.
	(__enable_shared_from_this_helper): Remove overload for
	std::__enable_shared_from_this.
	(__enable_shared_from_this_base): Define friend function to select a
	std::__enable_shared_from_this base class.
	* include/experimental/bits/shared_ptr.h (experimental::shared_ptr):
	Change relevant constructors to call _M_enable_shared_from_this_with.
	(experimental::shared_ptr::__efst_base_t)
	(experimental::shared_ptr::__has_efst_base): Helpers to detect
	accessible and unambiguous enable_shared_from_this bases.
	(experimental::shared_ptr::_M_enable_shared_from_this_with): Define.
	(experimental::__enable_shared_from_this_helper): Remove overload for
	std::experimental::enable_shared_from_this.
	(experimental::__expt_enable_shared_from_this_base): Define friend
	function to select a std::experimental::enable_shared_from_this base.
	* testsuite/experimental/memory/shared_ptr/cons/
	enable_shared_from_this.cc: New test.
	* testsuite/experimental/memory/shared_ptr/cons/unique_ptr_ctor.cc:
	Adjust expected behaviour for shared_ptr<A[]>.

From-SVN: r241353
2016-10-19 21:13:14 +01:00
..
bits Make std::enable_shared_from_this cope with ambiguity 2016-10-19 21:13:14 +01:00
algorithm PR77994 Convert std::sample size argument to suitable type 2016-10-17 15:39:23 +01:00
any Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
array Avoid #include <functional> in other headers 2016-10-13 17:59:19 +01:00
chrono Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
deque Update copyright years. 2016-01-04 15:30:50 +01:00
filesystem Update copyright years. 2016-01-04 15:30:50 +01:00
forward_list Update copyright years. 2016-01-04 15:30:50 +01:00
functional Use normal mode containers in searchers 2016-10-13 16:50:35 +01:00
iterator Update copyright years. 2016-01-04 15:30:50 +01:00
list Update copyright years. 2016-01-04 15:30:50 +01:00
map Update copyright years. 2016-01-04 15:30:50 +01:00
memory Avoid #include <functional> in other headers 2016-10-13 17:59:19 +01:00
memory_resource Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
numeric LWG 2733, LWG 2759 reject bool in gcd and lcm 2016-10-10 13:17:34 +01:00
optional Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
propagate_const Avoid #include <functional> in other headers 2016-10-13 17:59:19 +01:00
random Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
ratio Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
regex Update copyright years. 2016-01-04 15:30:50 +01:00
set Update copyright years. 2016-01-04 15:30:50 +01:00
string Update copyright years. 2016-01-04 15:30:50 +01:00
string_view Remove redundant const qualifliers from string_view 2016-10-11 11:33:24 +01:00
system_error Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
tuple Avoid #include <functional> in other headers 2016-10-13 17:59:19 +01:00
type_traits Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
unordered_map Update copyright years. 2016-01-04 15:30:50 +01:00
unordered_set Update copyright years. 2016-01-04 15:30:50 +01:00
utility Fix libstdc++ versioned namespace build 2016-10-03 15:35:28 +01:00
vector Update copyright years. 2016-01-04 15:30:50 +01:00