[libcxx-commits] [PATCH] D69603: [libcxx] Add deduction guides for shared_ptr and weak_ptr
Logan Smith via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Oct 29 22:03:38 PDT 2019
logan-5 created this revision.
logan-5 added a reviewer: mclow.lists.
Herald added a reviewer: EricWF.
Herald added subscribers: libcxx-commits, ldionne, christof.
This patch adds deduction guides to <memory> to allow deducing construction of shared_ptrs from unique_ptrs, and from weak_ptrs and vice versa, as specified by C++17.
Repository:
rCXX libc++
https://reviews.llvm.org/D69603
Files:
libcxx/include/memory
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.const/deduction.pass.cpp
libcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.weak.const/shared_ptr_deduction.pass.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69603.227028.patch
Type: text/x-patch
Size: 3726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191030/ef85a3a9/attachment.bin>
More information about the libcxx-commits
mailing list