summaryrefslogtreecommitdiff
path: root/libstdc++
diff options
context:
space:
mode:
authordrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-20 18:04:49 +0000
committerdrepper <drepper@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-20 18:04:49 +0000
commit8854efb3a61067d7ea670138b0ee4354ac5be107 (patch)
tree0b793f7c30f25d7b261280e288a58f340d686fe0 /libstdc++
parentc5a9c703b3bece7cbb68ad505a11d16ba0c8849e (diff)
downloadgcc-8854efb3a61067d7ea670138b0ee4354ac5be107.tar.gz
(__destroy_aux): Use != instead of < for ForwardIterator comparison.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24792 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/stl/stl_construct.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++/stl/stl_construct.h b/libstdc++/stl/stl_construct.h
index 0ce544c7eda..761784d57da 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