[libstdc++] Problems with include/bits/stl_vector.h (patch included)
Peter Schmid
schmid@snake.iap.physik.tu-darmstadt.de
Wed Jul 4 10:48:00 GMT 2001
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());
}
More information about the Libstdc++
mailing list