aboutsummaryrefslogtreecommitdiff
path: root/include/experimental/propagate_const
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:07:56 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:07:56 +0000
commitf36202620b428c45a1c8d91743727c9313424fb2 (patch)
tree14928d8970ba4890a6370aca4c38fc832d45f21f /include/experimental/propagate_const
parent0294ba5648d889e48ffee8ddad25944e258940ae (diff)
downloadsrc-f36202620b428c45a1c8d91743727c9313424fb2.tar.gz
src-f36202620b428c45a1c8d91743727c9313424fb2.zip
Notes
Diffstat (limited to 'include/experimental/propagate_const')
-rw-r--r--include/experimental/propagate_const3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/experimental/propagate_const b/include/experimental/propagate_const
index e7f7e9fc6831..188548596b84 100644
--- a/include/experimental/propagate_const
+++ b/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>