This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[libstdc++] Problems with include/bits/stl_vector.h (patch included)


There is a typo in include/bits/stl_vector.h of libstdc++ shipped with
gcc 3.1. IterCategoy should be replaced with IterCategory. Therefore,
vector iterators do no longer work. The appended patch
fixes this problem.

Hope this helps,

Peter Schmid
2001-07-04  Peter Schmid  <schmid@snake.iap.physik.tu-darmstadt.de>

        * include/bits/stl_vector.h: Fix typo.

*** libstdc++-v3/include/bits/stl_vector.h.orig	Wed Jul  4 19:38:56 2001
--- libstdc++-v3/include/bits/stl_vector.h	Wed Jul  4 19:39:27 2001
*************** public:
*** 256,262 ****
      void
  	_M_initialize_aux(_InputIterator __first, _InputIterator __last, __false_type)
  	{
! 	  typedef typename iterator_traits<_InputIterator>::iterator_category _IterCategoy;
  	  _M_range_initialize(__first, __last, _IterCategory());
  	}
  
--- 256,262 ----
      void
  	_M_initialize_aux(_InputIterator __first, _InputIterator __last, __false_type)
  	{
! 	  typedef typename iterator_traits<_InputIterator>::iterator_category _IterCategory;
  	  _M_range_initialize(__first, __last, _IterCategory());
  	}
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]