gcc/libstdc++-v3/testsuite/20_util/shared_ptr
Jonathan Wakely b1bd915843 PR libstdc++/80229 restore support for shared_ptr<function type>
PR libstdc++/80229
	* include/bits/shared_ptr_base.h
	(__shared_ptr::_M_enable_shared_from_this_with): Change parameters to
	non-const and then use remove_cv to get unqualified type.
	* testsuite/20_util/enable_shared_from_this/members/const.cc: Don't
	cast away constness on object created const.
	* testsuite/20_util/shared_ptr/cons/80229.cc: New test.

From-SVN: r246520
2017-03-28 08:35:04 +01:00
..
assign Update copyright years. 2017-01-01 13:07:43 +01:00
atomic Update copyright years. 2017-01-01 13:07:43 +01:00
casts Update copyright years. 2017-01-01 13:07:43 +01:00
comparison Update copyright years. 2017-01-01 13:07:43 +01:00
cons PR libstdc++/80229 restore support for shared_ptr<function type> 2017-03-28 08:35:04 +01:00
creation Update copyright years. 2017-01-01 13:07:43 +01:00
dest Update copyright years. 2017-01-01 13:07:43 +01:00
hash Update copyright years. 2017-01-01 13:07:43 +01:00
misc Update copyright years. 2017-01-01 13:07:43 +01:00
modifiers Update copyright years. 2017-01-01 13:07:43 +01:00
observers Update copyright years. 2017-01-01 13:07:43 +01:00
requirements Update copyright years. 2017-01-01 13:07:43 +01:00
thread Update copyright years. 2017-01-01 13:07:43 +01:00