-
- Downloads
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
Showing
- libstdc++-v3/ChangeLog 10 additions, 0 deletionslibstdc++-v3/ChangeLog
- libstdc++-v3/include/bits/shared_ptr_base.h 7 additions, 7 deletionslibstdc++-v3/include/bits/shared_ptr_base.h
- libstdc++-v3/testsuite/20_util/enable_shared_from_this/members/const.cc 2 additions, 2 deletions...estsuite/20_util/enable_shared_from_this/members/const.cc
- libstdc++-v3/testsuite/20_util/shared_ptr/cons/80229.cc 26 additions, 0 deletionslibstdc++-v3/testsuite/20_util/shared_ptr/cons/80229.cc
Loading
Please register or sign in to comment