[PATCH] D27565: [libcxx] Fix __compressed_pair so it doesn't copy the argument multiple times, and add constexpr.
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 12 16:57:15 PDT 2017
EricWF updated this revision to Diff 95058.
EricWF marked an inline comment as done.
EricWF added a comment.
- Add a static assertion that the new `__compressed_pair<T1, T2>` implementation is never used in a way that would be ABI-incompatible with the previous one. Specifically add a static assert that `T1 != T2`. This case should never arise because libc++ never uses `__compressed_pair` in a place where both element types should be the same. However assert that it doesn't occur just to be explicit.
https://reviews.llvm.org/D27565
Files:
include/__hash_table
include/memory
include/string
test/std/utilities/memory/unique.ptr/unique.ptr.runtime/unique.ptr.runtime.ctor/default01.fail.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27565.95058.patch
Type: text/x-patch
Size: 29158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170412/27d6a6c8/attachment-0001.bin>
More information about the cfe-commits
mailing list