(__destroy_aux): Use != instead of < for ForwardIterator comparison.
From-SVN: r24792
This commit is contained in:
parent
3240a1a2d2
commit
4f6478b760
|
@ -57,15 +57,15 @@ template <class _ForwardIterator>
|
||||||
inline void
|
inline void
|
||||||
__destroy_aux(_ForwardIterator __first, _ForwardIterator __last, __false_type)
|
__destroy_aux(_ForwardIterator __first, _ForwardIterator __last, __false_type)
|
||||||
{
|
{
|
||||||
for ( ; __first < __last; ++__first)
|
for ( ; __first != __last; ++__first)
|
||||||
destroy(&*__first);
|
destroy(&*__first);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class _ForwardIterator>
|
template <class _ForwardIterator>
|
||||||
inline void __destroy_aux(_ForwardIterator, _ForwardIterator, __true_type) {}
|
inline void __destroy_aux(_ForwardIterator, _ForwardIterator, __true_type) {}
|
||||||
|
|
||||||
template <class _ForwardIterator, class _Tp>
|
template <class _ForwardIterator, class _Tp>
|
||||||
inline void
|
inline void
|
||||||
__destroy(_ForwardIterator __first, _ForwardIterator __last, _Tp*)
|
__destroy(_ForwardIterator __first, _ForwardIterator __last, _Tp*)
|
||||||
{
|
{
|
||||||
typedef typename __type_traits<_Tp>::has_trivial_destructor
|
typedef typename __type_traits<_Tp>::has_trivial_destructor
|
||||||
|
|
Loading…
Reference in New Issue