[PATCH] D27564: [libcxx] Fix __compressed_pair so it doesn't copy the argument multiple times
Eric Fiselier via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 7 19:53:49 PST 2016
EricWF created this revision.
EricWF added a reviewer: mclow.lists.
EricWF added subscribers: cfe-commits, loladiro.
__compressed_pair takes and passes it's constructor arguments by value. This causes arguments to be moved 3 times instead of once. This patch addresses that issue and fixes `constexpr` on the constructors.
https://reviews.llvm.org/D27564
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: D27564.80712.patch
Type: text/x-patch
Size: 27292 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161208/2bd0a942/attachment-0001.bin>
More information about the cfe-commits
mailing list