diff options
| author | Marshall Clow <mclow.lists@gmail.com> | 2018-03-08 15:01:50 +0000 |
|---|---|---|
| committer | Marshall Clow <mclow.lists@gmail.com> | 2018-03-08 15:01:50 +0000 |
| commit | 6d1aec126078d75d8fe6971d6b62a376c6d1de1a (patch) | |
| tree | 737fe21c928db903b275b6180de0220ce132cc2c /libcxx | |
| parent | 4ad3c3214465d547ba5c61f264bac37dca6adf89 (diff) | |
| download | bcm5719-llvm-6d1aec126078d75d8fe6971d6b62a376c6d1de1a.tar.gz bcm5719-llvm-6d1aec126078d75d8fe6971d6b62a376c6d1de1a.zip | |
Implement LWG#2518 - Non-member swap for propagate_const should call member swap
llvm-svn: 327005
Diffstat (limited to 'libcxx')
| -rw-r--r-- | libcxx/include/experimental/propagate_const | 3 | ||||
| -rw-r--r-- | libcxx/www/cxx1z_status.html | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/libcxx/include/experimental/propagate_const b/libcxx/include/experimental/propagate_const index e7f7e9fc683..188548596b8 100644 --- a/libcxx/include/experimental/propagate_const +++ b/libcxx/include/experimental/propagate_const @@ -463,8 +463,7 @@ template <class _Tp> _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 <class _Tp> diff --git a/libcxx/www/cxx1z_status.html b/libcxx/www/cxx1z_status.html index 5cead9b1c99..29f99c059c4 100644 --- a/libcxx/www/cxx1z_status.html +++ b/libcxx/www/cxx1z_status.html @@ -375,7 +375,7 @@ <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> <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> <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> - <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> + <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> <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> <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> <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 @@ <!-- <tr><td></td><td></td><td></td><td></td></tr> --> </table> - <p>Last Updated: 12-Feb-2018</p> + <p>Last Updated: 8-Mar-2018</p> </div> </body> </html> |

