This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
problem with vector.h in beta 17.1
- To: gnu-win32 at cygnus dot com
- Subject: problem with vector.h in beta 17.1
- From: Santosh Sreenivasan <sasd at cortex dot eecs dot lehigh dot edu>
- Date: Fri, 31 Jan 1997 15:05:15 -0500 (EST)
Bug Report for Gnu-win32 beta version 17.1
>From
EECS
Lehigh University
While trying to compile an application under NT 4.0, we faced some problems,
and encountered some problems in the vector.h file that is part of your 17.1
distribution.
1) We had to add the following forward declarations in lines 34 - 37, to
prevent wrong instantiation of these templates when they are used later on.
line 34-37, added:
#ifdef __GNUG__ //lehigh hack
template <class T> struct vector_iterator;
template <class T> struct vector_const_iterator;
#endif
2) Line 274 in vector.h was :
size_t n,
However, size_t is not defined anywhere!! Maybe this should be changed to :
vector<T>::size_type n,
size_type is defined at line 45 in old vector.h
3) To avoid any potential problems, the function declaration of insert_aux
was moved before the use of the function. Same thing was done at line 157.
lines 56-61 of original vector.h were :
#ifdef __GNUG__
void insert_aux(iterator position, const T& x) {
insert_aux(vector_iterator<T>(position), x);
}
void insert_aux(vector_iterator<T> position, const T& x);
#else
changed to:
#ifdef __GNUG__
void insert_aux(vector_iterator<T> position, const T& x);
void insert_aux(iterator position, const T& x) {
insert_aux(vector_iterator<T>(position), x);
}
#else
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Santosh Sreenivasan Email: sasd@lehigh.edu ~
~ Lehigh University Tel: (610)694 9526 ~
~ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".