[v3] 13290

Benjamin Kosnik bkoz@redhat.com
Thu Dec 4 18:36:00 GMT 2003


tested x86/linux
gcc-3_3_branch only

2003-12-04  Christopher Saunders  <ctsa@u.washington.edu>

	PR libstdc++/13290
	* include/bits/stl_algo.h (generate_n): Fix typo.

Index: include/bits/stl_algo.h
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/stl_algo.h,v
retrieving revision 1.27.20.1
diff -c -p -r1.27.20.1 stl_algo.h
*** include/bits/stl_algo.h	30 Sep 2003 14:37:40 -0000	1.27.20.1
--- include/bits/stl_algo.h	4 Dec 2003 18:33:12 -0000
*************** namespace std
*** 948,954 ****
        // concept requirements
        __glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
              // "the type returned by a _Generator"
!             __typeof__(gen())>)
  
        for ( ; __n > 0; --__n, ++__first)
  	*__first = __gen();
--- 948,954 ----
        // concept requirements
        __glibcpp_function_requires(_OutputIteratorConcept<_OutputIter,
              // "the type returned by a _Generator"
!             __typeof__(__gen())>)
  
        for ( ; __n > 0; --__n, ++__first)
  	*__first = __gen();



More information about the Libstdc++ mailing list