Fix PR#30303 - no matching function for call to '__ptr_in_range'
llvm-svn: 280779
diff --git a/libcxx/include/string b/libcxx/include/string
index cfae0c8..b9e044e 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -2156,12 +2156,18 @@
return *this;
}
-template <typename _Tp>
+template <class _Tp>
bool __ptr_in_range (const _Tp* __p, const _Tp* __first, const _Tp* __last)
{
return __first <= __p && __p < __last;
}
+template <class _Tp1, class _Tp2>
+bool __ptr_in_range (const _Tp1* __p, const _Tp2* __first, const _Tp2* __last)
+{
+ return false;
+}
+
template <class _CharT, class _Traits, class _Allocator>
template<class _ForwardIterator>
typename enable_if