diff options
author | Ulrich Drepper <drepper@gcc.gnu.org> | 1999-01-20 18:04:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@gcc.gnu.org> | 1999-01-20 18:04:49 +0000 |
commit | 4f6478b7607496a1344b1de67aa34a4e03205aeb (patch) | |
tree | 0b793f7c30f25d7b261280e288a58f340d686fe0 | |
parent | 3240a1a2d28e3bbb94f863b7fd6f0590d93fba3f (diff) | |
download | gcc-4f6478b7607496a1344b1de67aa34a4e03205aeb.zip gcc-4f6478b7607496a1344b1de67aa34a4e03205aeb.tar.gz gcc-4f6478b7607496a1344b1de67aa34a4e03205aeb.tar.bz2 |
(__destroy_aux): Use != instead of < for ForwardIterator comparison.
From-SVN: r24792
-rw-r--r-- | libstdc++/stl/stl_construct.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++/stl/stl_construct.h b/libstdc++/stl/stl_construct.h index 0ce544c..761784d 100644 --- a/libstdc++/stl/stl_construct.h +++ b/libstdc++/stl/stl_construct.h @@ -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 |