gcc/libstdc++-v3/include
Jonathan Wakely 156b60e0b9 re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag)
2014-01-28  Jonathan Wakely  <jwakely@redhat.com>
	    Kyle Lippincott  <spectral@google.com>

	PR libstdc++/59656
	* include/bits/shared_ptr.h (shared_ptr): Add new non-throwing
	constructor and grant friendship to weak_ptr.
	(weak_ptr::lock()): Use new constructor.
	* include/bits/shared_ptr_base.h
	(_Sp_counted_base::_M_add_ref_lock_nothrow()): Declare new function
	and define specializations.
	(__shared_count): Add new non-throwing constructor.
	(__shared_ptr): Add new non-throwing constructor and grant friendship
	to __weak_ptr.
	(__weak_ptr::lock()): Use new constructor.
	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Adjust dg-error.
	* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.

Co-Authored-By: Kyle Lippincott <spectral@google.com>

From-SVN: r207180
2014-01-28 10:23:27 +00:00
..
backward Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
bits re PR libstdc++/59656 (weak_ptr::lock function crashes when compiling with -fno-exceptions flag) 2014-01-28 10:23:27 +00:00
c Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_compatibility Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
c_global acinclude.m4 (GLIBCXX_CHECK_TMPNAM): New check for tmpnam function. 2014-01-23 21:17:15 +00:00
c_std Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
debug re PR libstdc++/59548 (Abort after copying std::unordered_map in debug mode) 2014-01-24 20:08:20 +00:00
decimal Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
experimental re PR libstdc++/59531 (string_view overrun in copy operation) 2014-01-24 20:15:00 +00:00
ext Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
parallel Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
precompiled Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
profile re PR libstdc++/58764 ([lwg/2193] error: converting to ‘const std::vector<std::basic_string<char> >’ from initializer list would use explicit constructor) 2014-01-22 19:46:44 +00:00
std regex_automaton.tcc (_StateSeq<>::_M_clone()): Do not use std::map. 2014-01-16 23:35:21 +00:00
tr1 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
tr2 Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.am Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
Makefile.in Implement N3762 string_view: a non-owning reference to a string. 2013-11-16 17:44:48 +00:00