PR libstdc++/87278 restore support for std::make_shared<volatile T>()
authorJonathan Wakely <jwakely@redhat.com>
Tue, 11 Sep 2018 11:50:39 +0000 (12:50 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 11 Sep 2018 11:50:39 +0000 (12:50 +0100)
commit9e2d426c17e882e117af872b103f9ac2866b5132
tree920b00625d4db3d3adfa08f9491c809416e5a512
parent86fc6ec9f366fd95d976c01bfa24c6775537ba62
PR libstdc++/87278 restore support for std::make_shared<volatile T>()

PR libstdc++/87278
* include/bits/shared_ptr.h (make_shared): Use remove_cv instead of
remove_const.
* testsuite/20_util/shared_ptr/creation/87278.cc: New test.

From-SVN: r264207
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/shared_ptr.h
libstdc++-v3/testsuite/20_util/shared_ptr/creation/87278.cc [new file with mode: 0644]