[libcxx-commits] [PATCH] D62921: Constrain shared_ptr(Y*) - 2874
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jun 5 11:01:32 PDT 2019
zoecarver created this revision.
zoecarver added reviewers: mclow.lists, ldionne, EricWF.
Herald added subscribers: libcxx-commits, dexonsmith.
This patch fixes issue 2874 <https://cplusplus.github.io/LWG/issue2874> by constraining the constructor `shared_ptr(Y*) `. Keep in mind the type trait must be supported in C++03 (believe me; it used to look worse).
Repository:
rCXX libc++
https://reviews.llvm.org/D62921
Files:
include/memory
include/type_traits
test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/pointer.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62921.203207.patch
Type: text/x-patch
Size: 4375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190605/93caf10b/attachment.bin>
More information about the libcxx-commits
mailing list