[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
+  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?


More information about the cfe-commits mailing list