summaryrefslogtreecommitdiffstats
path: root/libcxx/include/algorithm
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-23 17:37:05 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-08-23 17:37:05 +0000
commitfc88dbd2988365dfa869d7387e1c1a1ae1e5d33d (patch)
treeae37b542af4ad74ab85bfa5650101b0e2ece2e1a /libcxx/include/algorithm
parent9217aa3b1532b76e50c6e28f4baec28557f5f978 (diff)
downloadbcm5719-llvm-fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d.tar.gz
bcm5719-llvm-fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d.zip
Debug mode for string. This commit also marks the first time libc++ debug-mode has found a bug (found one in regex). Had to play with extern templates a bit to get this to work since string is heavily used within libc++.dylib.
llvm-svn: 189114
Diffstat (limited to 'libcxx/include/algorithm')
-rw-r--r--libcxx/include/algorithm4
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm
index 03b872a7b5e..442e100f708 100644
--- a/libcxx/include/algorithm
+++ b/libcxx/include/algorithm
@@ -1692,6 +1692,8 @@ __unwrap_iter(move_iterator<_Tp*> __i)
return __i.base();
}
+#if _LIBCPP_DEBUG_LEVEL < 2
+
template <class _Tp>
inline _LIBCPP_INLINE_VISIBILITY
typename enable_if
@@ -1704,6 +1706,8 @@ __unwrap_iter(__wrap_iter<_Tp*> __i)
return __i.base();
}
+#endif // _LIBCPP_DEBUG_LEVEL < 2
+
template <class _InputIterator, class _OutputIterator>
inline _LIBCPP_INLINE_VISIBILITY
_OutputIterator
OpenPOWER on IntegriCloud