gcc/libstdc++-v3/include
Jonathan Wakely 6bc41b268e 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.

From-SVN: r227232
2015-08-26 22:27:00 +01:00
..
backward Update copyright years. 2015-01-05 13:33:28 +01:00
bits Only set std::enable_shared_from_this member once. 2015-08-26 22:27:00 +01:00
c Update copyright years. 2015-01-05 13:33:28 +01:00
c_compatibility Update copyright years. 2015-01-05 13:33:28 +01:00
c_global cmath: Fix typo in comment. 2015-08-19 13:20:29 +00:00
c_std re PR libstdc++/64883 (FAIL: 17_intro/headers/c++*/all_attributes.cc (test for excess errors) on x86_64-apple-darwin10) 2015-02-01 15:11:08 +00:00
debug try_emplace and insert_or_assign for Debug Mode. 2015-08-26 21:58:14 +01:00
decimal Update copyright years. 2015-01-05 13:33:28 +01:00
experimental any (__any_caster): Define at namespace scope so the name is visible to name lookup. 2015-08-20 21:19:58 +01:00
ext re PR libstdc++/65049 (Undefined behaviour with std::char_traits<char>) 2015-08-24 14:43:54 +01:00
parallel Update copyright years. 2015-01-05 13:33:28 +01:00
precompiled * include/precompiled/stdc++.h: Include <codecvt> and <shared_mutex>. 2015-06-12 13:27:06 +01:00
profile c++config (_GLIBCXX_NOEXCEPT_IF): Define. 2015-07-13 18:15:48 +01:00
std shared_mutex (shared_mutex::unlock()): Fix typo. 2015-08-13 14:57:28 +01:00
tr1 Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
tr2 Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.am Implement std::experimental::fundamentals_v2::make_array and std::experimental::fundamentals_v2::to_array. 2015-08-13 17:55:46 +03:00
Makefile.in Implement std::experimental::fundamentals_v2::make_array and std::experimental::fundamentals_v2::to_array. 2015-08-13 17:55:46 +03:00