re PR libstdc++/58594 (std::make_shared does not accept const types as parameters)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 12 Dec 2014 21:05:35 +0000 (21:05 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 12 Dec 2014 21:05:35 +0000 (21:05 +0000)
commitd95521b4118c83b23997a823b0682a385609fd84
treeab6ce57898561a79383a09723159935456ccb810
parent4573e50a83f944b14a8756ac96603de0c51e2d6c
re PR libstdc++/58594 (std::make_shared does not accept const types as parameters)

PR libstdc++/58594
* include/bits/shared_ptr_base.h: Cast away cv-quals.
* testsuite/20_util/shared_ptr/creation/58594-no-rtti.cc: New.
* testsuite/20_util/shared_ptr/creation/private.cc: Make allocator
rebindable so test passes with -fno-rtti.

From-SVN: r218691
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr_base.h
libstdc++-v3/testsuite/20_util/shared_ptr/creation/58594-no-rtti.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/shared_ptr/creation/private.cc