[PATCH] D101899: std::forward_list::swap to use propagate_on_container_swap for noexcept specification
Hyundeok Park via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 5 05:20:35 PDT 2021
airglow923 updated this revision to Diff 343011.
Repository:
rCXX libc++
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101899/new/
https://reviews.llvm.org/D101899
Files:
libcxx/include/forward_list
Index: libcxx/include/forward_list
===================================================================
--- libcxx/include/forward_list
+++ libcxx/include/forward_list
@@ -534,7 +534,7 @@
#if _LIBCPP_STD_VER >= 14
_NOEXCEPT;
#else
- _NOEXCEPT_(!__node_traits::propagate_on_container_move_assignment::value ||
+ _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value ||
__is_nothrow_swappable<__node_allocator>::value);
#endif
protected:
@@ -599,7 +599,7 @@
#if _LIBCPP_STD_VER >= 14
_NOEXCEPT
#else
- _NOEXCEPT_(!__node_traits::propagate_on_container_move_assignment::value ||
+ _NOEXCEPT_(!__node_traits::propagate_on_container_swap::value ||
__is_nothrow_swappable<__node_allocator>::value)
#endif
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101899.343011.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210505/7ca655b9/attachment-0001.bin>
More information about the cfe-commits
mailing list