OSDN Git Service

(__destroy_aux): Use != instead of < for ForwardIterator comparison.
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jan 1999 18:04:49 +0000 (18:04 +0000)
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Jan 1999 18:04:49 +0000 (18:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24792 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++/stl/stl_construct.h

index 0ce544c..761784d 100644 (file)
@@ -57,15 +57,15 @@ template <class _ForwardIterator>
 inline void
 __destroy_aux(_ForwardIterator __first, _ForwardIterator __last, __false_type)
 {
-  for ( ; __first < __last; ++__first)
+  for ( ; __first != __last; ++__first)
     destroy(&*__first);
 }
 
-template <class _ForwardIterator> 
+template <class _ForwardIterator>
 inline void __destroy_aux(_ForwardIterator, _ForwardIterator, __true_type) {}
 
 template <class _ForwardIterator, class _Tp>
-inline void 
+inline void
 __destroy(_ForwardIterator __first, _ForwardIterator __last, _Tp*)
 {
   typedef typename __type_traits<_Tp>::has_trivial_destructor