diff options
author | Howard Hinnant <hhinnant@apple.com> | 2013-08-23 21:37:05 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2013-08-23 21:37:05 +0400 |
commit | fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d (patch) | |
tree | ae37b542af4ad74ab85bfa5650101b0e2ece2e1a /libcxx/include/algorithm | |
parent | 9217aa3b1532b76e50c6e28f4baec28557f5f978 (diff) |
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/algorithm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/include/algorithm b/libcxx/include/algorithm index 03b872a7b5e5..442e100f7080 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 |