From: sasd AT cortex DOT eecs DOT lehigh DOT edu (Santosh Sreenivasan) Subject: problem with vector.h in beta 17.1 31 Jan 1997 13:57:34 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Original-To: gnu-win32 AT cygnus DOT com Original-Sender: owner-gnu-win32 AT cygnus DOT com 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 struct vector_iterator; template 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::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(position), x); } void insert_aux(vector_iterator position, const T& x); #else changed to: #ifdef __GNUG__ void insert_aux(vector_iterator position, const T& x); void insert_aux(iterator position, const T& x) { insert_aux(vector_iterator(position), x); } #else ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Santosh Sreenivasan Email: sasd AT lehigh DOT edu ~ ~ Lehigh University Tel: (610)694 9526 ~ ~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".