[libcxx-commits] [PATCH] D62641: Support arrays in make_shared and allocate_shared (P0674R1)
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed May 29 19:25:21 PDT 2019
zoecarver created this revision.
zoecarver added reviewers: mclow.lists, EricWF, ldionne.
Herald added subscribers: libcxx-commits, dexonsmith.
This patch implements P0674R1 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0674r1.html#_changes_in_revision_3>. It might be a bit rough around the edges, but I wanted to get it out so it can be reviewed and I can make changes to it as I straighten out the last few parts.
The main changes are how `__shared_ptr_pointer` deallocates itself and (obviously) the added overloads.
- Relevant section of the standard <http://eel.is/c++draft/util.smartptr.shared#create-11>.
- Paper <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0674r1.html#_changes_in_revision_3>.
- Based on D62259 <https://reviews.llvm.org/D62259>.
Thanks for the help @mclow.lists and @EricWF
Repository:
rCXX libc++
https://reviews.llvm.org/D62641
Files:
include/memory
test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/create_array.pass.cpp
www/cxx2a_status.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62641.202101.patch
Type: text/x-patch
Size: 17007 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190530/ef328273/attachment-0001.bin>
More information about the libcxx-commits
mailing list