[PATCH] D41223: [libc++] Fix PR35491 - std::array of zero-size doesn't work with non-default constructible types.
Zhihao Yuan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 14 22:15:29 PST 2017
lichray added inline comments.
================
Comment at: include/array:135
+ _LIBCPP_INLINE_VISIBILITY
+ static void __swap(_StorageT& __lhs, _StorageT& __rhs) {
+ std::swap_ranges(__lhs, __lhs + _Size, __rhs);
----------------
Just asking: no compiler is dumb enough to not inline this entirely trivial wrapper so that it's okay to not to propagate `noexcept` here to avoid try...capture...terminate codegen in its caller side?
https://reviews.llvm.org/D41223
More information about the cfe-commits
mailing list