[PATCH] D62259: shared_ptr changes from library fundamentals (P0414R2)
Louis Dionne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 7 10:47:13 PDT 2020
ldionne requested changes to this revision.
ldionne added a comment.
This revision now requires changes to proceed.
Thanks for your patience, I'm finally getting to this. This mostly LGTM, with a question:
For `get` and `operator[]`, the paper says:
> Remarks: When T is [not] an array type, it is unspecified whether this member function is declared. If it is declared, it is unspecified what its return type is, except that the declaration (although not necessarily the definition) of the function shall be well formed.
I think we might want to add a `static_assert` in the body of those functions to check that `_T` is/is not an array type. WDYT?
================
Comment at: libcxx/www/cxx1z_status.html:131
<tr><td><a href="https://wg21.link/P0403R1">P0403R1</a></td><td>LWG</td><td>Literal suffixes for <tt>basic_string_view</tt></td><td>Issaquah</td><td>Complete</td><td>4.0</td></tr>
- <tr><td><a href="https://wg21.link/P0414R2">P0414R2</a></td><td>LWG</td><td>Merging shared_ptr changes from Library Fundamentals to C++17</td><td>Issaquah</td><td></td><td></td></tr>
+ <tr><td><a href="https://wg21.link/P0414R2">P0414R2</a></td><td>LWG</td><td>Merging shared_ptr changes from Library Fundamentals to C++17</td><td>Issaquah</td><td>Complete</td><td></td></tr>
<tr><td><a href="https://wg21.link/P0418R2">P0418R2</a></td><td>LWG</td><td>Fail or succeed: there is no atomic lattice</td><td>Issaquah</td><td></td><td></td></tr>
----------------
You can mark this as being in LLVM 11.0.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62259/new/
https://reviews.llvm.org/D62259
More information about the llvm-commits
mailing list