Skip to content

Commit 6d1aec1

Browse files
committed
Implement LWG#2518 - Non-member swap for propagate_const should call member swap
llvm-svn: 327005
1 parent 4ad3c32 commit 6d1aec1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libcxx/include/experimental/propagate_const

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,7 @@ template <class _Tp>
463463
_LIBCPP_INLINE_VISIBILITY
464464
_LIBCPP_CONSTEXPR void swap(propagate_const<_Tp>& __pc1, propagate_const<_Tp>& __pc2) _NOEXCEPT_(__is_nothrow_swappable<_Tp>::value)
465465
{
466-
using _VSTD::swap;
467-
swap(_VSTD_LFTS_V2::get_underlying(__pc1), _VSTD_LFTS_V2::get_underlying(__pc2));
466+
__pc1.swap(__pc2);
468467
}
469468

470469
template <class _Tp>

libcxx/www/cxx1z_status.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ <h3>Library Working group Issues Status</h3>
375375
<tr><td><a href="https://wg21.link/LWG2503">2503</a></td><td>multiline option should be added to syntax_option_type</td><td>Issaquah</td><td></td></tr>
376376
<tr><td><a href="https://wg21.link/LWG2510">2510</a></td><td>Tag types should not be DefaultConstructible</td><td>Issaquah</td><td></td></tr>
377377
<tr><td><a href="https://wg21.link/LWG2514">2514</a></td><td>Type traits must not be final</td><td>Issaquah</td><td>Complete</td></tr>
378-
<tr><td><a href="https://wg21.link/LWG2518">2518</a></td><td>[fund.ts.v2] Non-member swap for propagate_const should call member swap</td><td>Issaquah</td><td></td></tr>
378+
<tr><td><a href="https://wg21.link/LWG2518">2518</a></td><td>[fund.ts.v2] Non-member swap for propagate_const should call member swap</td><td>Issaquah</td><td>Complete</td></tr>
379379
<tr><td><a href="https://wg21.link/LWG2519">2519</a></td><td>Iterator operator-= has gratuitous undefined behaviour</td><td>Issaquah</td><td>Complete</td></tr>
380380
<tr><td><a href="https://wg21.link/LWG2521">2521</a></td><td>[fund.ts.v2] weak_ptr's converting move constructor should be modified as well for array support</td><td>Issaquah</td><td></td></tr>
381381
<tr><td><a href="https://wg21.link/LWG2525">2525</a></td><td>[fund.ts.v2] get_memory_resource should be const and noexcept</td><td>Issaquah</td><td></td></tr>
@@ -504,7 +504,7 @@ <h3>Library Working group Issues Status</h3>
504504
<!-- <tr><td></td><td></td><td></td><td></td></tr> -->
505505
</table>
506506

507-
<p>Last Updated: 12-Feb-2018</p>
507+
<p>Last Updated: 8-Mar-2018</p>
508508
</div>
509509
</body>
510510
</html>

0 commit comments

Comments
 (0)