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

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Aug 26 21:27:00 GMT 2015


Author: redi
Date: Wed Aug 26 21:27:00 2015
New Revision: 227232

URL: https://gcc.gnu.org/viewcvs?rev=227232&root=gcc&view=rev
Log:
Only set std::enable_shared_from_this member once.

	* include/bits/shared_ptr.h (__enable_shared_from_this_helper): Use
	nullptr.
	* include/bits/shared_ptr_base.h (weak_ptr::_M_assign): Don't assign
	if ownership is already shared with a shared_ptr object.
	(__enable_shared_from_this_helper): Use nullptr.
	* testsuite/20_util/enable_shared_from_this/members/const.cc: New.
	* testsuite/20_util/enable_shared_from_this/members/reinit.cc: New.
	* testsuite/20_util/enable_shared_from_this/requirements/
	explicit_instantiation.cc: Instantiate with const and incomplete types.

Added:
    trunk/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/const.cc
    trunk/libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/reinit.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr.h
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h
    trunk/libstdc++-v3/testsuite/20_util/enable_shared_from_this/requirements/explicit_instantiation.cc



More information about the Libstdc++-cvs mailing list