From 558ef0f7716522e45be93106f33e07cf90f72b7f Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Sat, 5 May 2007 01:15:46 +0000 Subject: [PATCH] stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name. 2007-05-04 Paolo Carlini * include/bits/stl_raw_storage_iter.h (class raw_storage_iterator): Adjust template parameter name. From-SVN: r124459 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/bits/stl_raw_storage_iter.h | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index c264163..a78bb09 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2007-05-04 Paolo Carlini + + * include/bits/stl_raw_storage_iter.h (class raw_storage_iterator): + Adjust template parameter name. + 2007-05-04 Mark Mitchell * libsupc++/cxxabi.h (__cxa_atexit): Conditionalize exception diff --git a/libstdc++-v3/include/bits/stl_raw_storage_iter.h b/libstdc++-v3/include/bits/stl_raw_storage_iter.h index 615da28..08e6c58 100644 --- a/libstdc++-v3/include/bits/stl_raw_storage_iter.h +++ b/libstdc++-v3/include/bits/stl_raw_storage_iter.h @@ -1,6 +1,7 @@ // -*- C++ -*- -// Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc. +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 +// Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the @@ -67,16 +68,16 @@ _GLIBCXX_BEGIN_NAMESPACE(std) * This iterator class lets algorithms store their results into * uninitialized memory. */ - template + template class raw_storage_iterator : public iterator { protected: - _ForwardIterator _M_iter; + _OutputIterator _M_iter; public: explicit - raw_storage_iterator(_ForwardIterator __x) + raw_storage_iterator(_OutputIterator __x) : _M_iter(__x) {} raw_storage_iterator& @@ -89,17 +90,17 @@ _GLIBCXX_BEGIN_NAMESPACE(std) return *this; } - raw_storage_iterator<_ForwardIterator, _Tp>& + raw_storage_iterator<_OutputIterator, _Tp>& operator++() { ++_M_iter; return *this; } - raw_storage_iterator<_ForwardIterator, _Tp> + raw_storage_iterator<_OutputIterator, _Tp> operator++(int) { - raw_storage_iterator<_ForwardIterator, _Tp> __tmp = *this; + raw_storage_iterator<_OutputIterator, _Tp> __tmp = *this; ++_M_iter; return __tmp; } -- 2.7.4