summaryrefslogtreecommitdiffstats
path: root/libcxx/include/experimental
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-03-08 15:01:50 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-03-08 15:01:50 +0000
commit6d1aec126078d75d8fe6971d6b62a376c6d1de1a (patch)
tree737fe21c928db903b275b6180de0220ce132cc2c /libcxx/include/experimental
parent4ad3c3214465d547ba5c61f264bac37dca6adf89 (diff)
downloadbcm5719-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/include/experimental')
-rw-r--r--libcxx/include/experimental/propagate_const3
1 files changed, 1 insertions, 2 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>
OpenPOWER on IntegriCloud