[libcxx-commits] [PATCH] D62228: Make `vector` unconditionally move elements when exceptions are disabled.

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 23 10:00:01 PDT 2019


ldionne added a comment.

The approach I was more comfortable with was defining a macro that would be somewhat like `noexcept(expression)`, but that would always return `true` when exceptions are disabled. This would be a library emulation of the compiler change we talked about on the list.



================
Comment at: test/libcxx/utilities/utility/forward/extended_move_if_noexcept.sh.cpp:27-28
+
+// __extended_move_if_noexcept is used by containers that need to provide
+// the strong exception safety guarantee for certain modifying operations.
+//
----------------
This comment should be in the header where `__extended_move_if_noexcept` is defined, not in this test.


Repository:
  rCXX libc++

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62228/new/

https://reviews.llvm.org/D62228





More information about the libcxx-commits mailing list