summaryrefslogtreecommitdiff
path: root/libstdc++/stl/stl_construct.h
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++/stl/stl_construct.h')
-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