From: Marshall Clow Date: Thu, 8 Mar 2018 15:01:50 +0000 (+0000) Subject: Implement LWG#2518 - Non-member swap for propagate_const should call member swap X-Git-Tag: llvmorg-7.0.0-rc1~11120 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6d1aec126078d75d8fe6971d6b62a376c6d1de1a;p=platform%2Fupstream%2Fllvm.git Implement LWG#2518 - Non-member swap for propagate_const should call member swap llvm-svn: 327005 --- diff --git a/libcxx/include/experimental/propagate_const b/libcxx/include/experimental/propagate_const index e7f7e9f..1885485 100644 --- a/libcxx/include/experimental/propagate_const +++ b/libcxx/include/experimental/propagate_const @@ -463,8 +463,7 @@ template _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR void swap(propagate_const<_Tp>& __pc1, propagate_const<_Tp>& __pc2) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value) { - using _VSTD::swap; - swap(_VSTD_LFTS_V2::get_underlying(__pc1), _VSTD_LFTS_V2::get_underlying(__pc2)); + __pc1.swap(__pc2); } template diff --git a/libcxx/www/cxx1z_status.html b/libcxx/www/cxx1z_status.html index 5cead9b..29f99c0 100644 --- a/libcxx/www/cxx1z_status.html +++ b/libcxx/www/cxx1z_status.html @@ -375,7 +375,7 @@ 2503multiline option should be added to syntax_option_typeIssaquah 2510Tag types should not be DefaultConstructibleIssaquah 2514Type traits must not be finalIssaquahComplete - 2518[fund.ts.v2] Non-member swap for propagate_const should call member swapIssaquah + 2518[fund.ts.v2] Non-member swap for propagate_const should call member swapIssaquahComplete 2519Iterator operator-= has gratuitous undefined behaviourIssaquahComplete 2521[fund.ts.v2] weak_ptr's converting move constructor should be modified as well for array supportIssaquah 2525[fund.ts.v2] get_memory_resource should be const and noexceptIssaquah @@ -504,7 +504,7 @@ -

Last Updated: 12-Feb-2018

+

Last Updated: 8-Mar-2018