stl_iterator_base_funcs.h: (next): Change template parameter name consistently with the resolution of DR...

2009-10-28  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/stl_iterator_base_funcs.h: (next): Change
	template parameter name consistently with the resolution
	of DR 1011 ([Ready] in Santa Cruz).

From-SVN: r153654
This commit is contained in:
Paolo Carlini 2009-10-28 13:07:00 +00:00 committed by Paolo Carlini
parent e5bb5009e4
commit de5b9f12c5
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2009-10-28 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/stl_iterator_base_funcs.h: (next): Change
template parameter name consistently with the resolution
of DR 1011 ([Ready] in Santa Cruz).
2009-10-28 Johannes Singler <singler@kit.edu>
PR libstdc++/40852

View File

@ -173,10 +173,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
}
#ifdef __GXX_EXPERIMENTAL_CXX0X__
template<typename _InputIterator>
inline _InputIterator
next(_InputIterator __x, typename
iterator_traits<_InputIterator>::difference_type __n = 1)
template<typename _ForwardIterator>
inline _ForwardIterator
next(_ForwardIterator __x, typename
iterator_traits<_ForwardIterator>::difference_type __n = 1)
{
std::advance(__x, __n);
return __x;