Fix PR#30303 - no matching function for call to '__ptr_in_range'
llvm-svn: 280779
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: a77bb8ef3482cd9dfa0d5631f99c55f5981ba6ca
diff --git a/include/string b/include/string
index cfae0c8..b9e044e 100644
--- a/include/string
+++ b/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