From 14bd0bf00811bd1a151c6559a14b53cd0c039b68 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 28 Dec 2016 05:35:32 +0000 Subject: Fix __wrap_iter in debug mode and apply _NOEXCEPT_DEBUG to it llvm-svn: 290654 --- libcxx/include/algorithm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libcxx/include/algorithm') diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index c4bf5991b63..189991efbee 100644 --- a/libcxx/include/algorithm +++ b/libcxx/include/algorithm @@ -1681,6 +1681,20 @@ __unwrap_iter(__wrap_iter<_Tp*> __i) return __i.base(); } +#else + +template +inline _LIBCPP_INLINE_VISIBILITY +typename enable_if +< + is_trivially_copy_assignable<_Tp>::value, + __wrap_iter<_Tp*> +>::type +__unwrap_iter(__wrap_iter<_Tp*> __i) +{ + return __i; +} + #endif // _LIBCPP_DEBUG_LEVEL < 2 template -- cgit v1.2.3