[PATCH] D30837: [libcxx] Support for shared_ptr<T()>

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 30 10:08:35 PDT 2017


erik.pilkington updated this revision to Diff 93488.
erik.pilkington marked 2 inline comments as done.
erik.pilkington added a comment.

In this new patch, use an explicit specialization of std::allocator that specifically only performs a rebind. This needs to be a specialization of std::allocator so we can use allocator's `allocator(const allocator<U> &)` ctor from `shared_ptr_pointer::__on_zero_shared_weak()`.
Thanks,
Erik


https://reviews.llvm.org/D30837

Files:
  include/memory
  test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30837.93488.patch
Type: text/x-patch
Size: 5215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170330/4b39e877/attachment-0001.bin>


More information about the cfe-commits mailing list