[PATCH] D24372: [libcxx] Sprinkle constexpr over compressed_pair
Keno Fischer via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 8 20:30:14 PDT 2016
loladiro created this revision.
loladiro added reviewers: EricWF, mclow.lists.
loladiro added a subscriber: cfe-commits.
loladiro set the repository for this revision to rL LLVM.
Without this, unique_ptr is not constant initialized. I've added a test to that extent.
Unfortunately, I believe there's additional work required for C++11, since unique_ptr
uses std::forward internally which is not constexpr until C++14. Doing something about
that is not part of this patch. unique_ptr not being constant initialized is particularly problematic
because it is in libstdc++, so there's applications that rely on this behavior.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 16065 bytes
Desc: not available
More information about the cfe-commits