[libcxx-commits] [PATCH] D62259: shared_ptr changes from library fundamentals (P0414R2)

Zoe Carver via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed May 22 08:45:22 PDT 2019


zoecarver created this revision.
zoecarver added reviewers: mclow.lists, ldionne, EricWF.
Herald added subscribers: libcxx-commits, dexonsmith.

This patch is a WIP to support P0414R2 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0414r2.html>. I am not quite sure how the paper intended arrays to be used with shared_ptr. Specifically, the change to `element_type` is confusing to me, because it seemingly makes array types impossible to use with shared_ptr (e.g. how are you supposed to return a pointer to an int array when the function expects a pointer to an int?), and yet that seems to be the genesis of the paper.


Repository:
  rCXX libc++

https://reviews.llvm.org/D62259

Files:
  include/memory
  test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.cast/const_pointer_cast.pass.cpp
  www/cxx1z_status.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62259.200764.patch
Type: text/x-patch
Size: 12918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190522/3157769d/attachment-0001.bin>


More information about the libcxx-commits mailing list