Subject: problem with vector.h in beta 17.1
From: [email-masked] (Santosh Sreenivasan)

31 Jan 1997 13:57:34 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <Pine.SOL.3.91.970131150346.2330F-100000.cygnus.gnu-win32@retina>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Original-To: [email-masked]
Original-Sender: [email-masked]

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: [email-masked] ~
	~    Lehigh University	      Tel:   (610)694 9526   ~
	~					             ~
	~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".