Fix PR#30303 - no matching function for call to '__ptr_in_range'
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@280779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2156,12 +2156,18 @@ basic_string<_CharT, _Traits, _Allocator>::append(_InputIterator __first, _Input
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user