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

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Mar 28 07:35:00 GMT 2017


Author: redi
Date: Tue Mar 28 07:35:04 2017
New Revision: 246520

URL: https://gcc.gnu.org/viewcvs?rev=246520&root=gcc&view=rev
Log:
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.

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



More information about the Libstdc++-cvs mailing list