From: Ulrich Drepper Date: Wed, 20 Jan 1999 18:04:49 +0000 (+0000) Subject: (__destroy_aux): Use != instead of < for ForwardIterator comparison. X-Git-Tag: prereleases/libgcj-0.1~1233 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f6478b7607496a1344b1de67aa34a4e03205aeb;p=thirdparty%2Fgcc.git (__destroy_aux): Use != instead of < for ForwardIterator comparison. From-SVN: r24792 --- diff --git a/libstdc++/stl/stl_construct.h b/libstdc++/stl/stl_construct.h index 0ce544c7eda5..761784d57da0 100644 --- a/libstdc++/stl/stl_construct.h +++ b/libstdc++/stl/stl_construct.h @@ -57,15 +57,15 @@ template inline void __destroy_aux(_ForwardIterator __first, _ForwardIterator __last, __false_type) { - for ( ; __first < __last; ++__first) + for ( ; __first != __last; ++__first) destroy(&*__first); } -template +template inline void __destroy_aux(_ForwardIterator, _ForwardIterator, __true_type) {} template -inline void +inline void __destroy(_ForwardIterator __first, _ForwardIterator __last, _Tp*) { typedef typename __type_traits<_Tp>::has_trivial_destructor