From 27caad2e1e40c12ba53a049609f6cfa08ef16bae Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Fri, 17 Oct 2008 09:08:02 +0000 Subject: forward_list.tcc (forward_list<>:: _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): Simplify. 2008-10-17 Paolo Carlini * include/bits/forward_list.tcc (forward_list<>:: _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): Simplify. From-SVN: r141192 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/bits/forward_list.tcc | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'libstdc++-v3') diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index f9deb3a..18aa177 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,11 @@ 2008-10-17 Paolo Carlini + * include/bits/forward_list.tcc (forward_list<>:: + _M_initialize_dispatch(_InputIterator, _InputIterator, __false_type)): + Simplify. + +2008-10-17 Paolo Carlini + * include/bits/forward_list.h (forward_list<>:: forward_list(size_type)): Tweak, use _Base default constructor. diff --git a/libstdc++-v3/include/bits/forward_list.tcc b/libstdc++-v3/include/bits/forward_list.tcc index f222f70..02b1a0d 100644 --- a/libstdc++-v3/include/bits/forward_list.tcc +++ b/libstdc++-v3/include/bits/forward_list.tcc @@ -215,12 +215,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) __false_type) { _Fwd_list_node_base* __to = &this->_M_impl._M_head; - _InputIterator __curr = __first; - while (__curr != __last) + for (; __first != __last; ++__first) { - __to->_M_next = this->_M_create_node(*__curr); + __to->_M_next = this->_M_create_node(*__first); __to = __to->_M_next; - ++__curr; } } -- cgit v1.1