r243571 - /branches/gcc-6-branch/libstdc++-v3/C...

redi@gcc.gnu.org redi@gcc.gnu.org
Mon Dec 12 17:46:00 GMT 2016


Author: redi
Date: Mon Dec 12 17:46:48 2016
New Revision: 243571

URL: https://gcc.gnu.org/viewcvs?rev=243571&root=gcc&view=rev
Log:
Enable experimental::enable_shared_from_this explicitly

Backport from mainline
2016-10-19  Jonathan Wakely  <jwakely@redhat.com>

	* 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[]>.

Modified:
    branches/gcc-6-branch/libstdc++-v3/ChangeLog



More information about the Libstdc++-cvs mailing list