delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/28/16:16:50

From: Al Christians <achrist AT easystreet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Shadow vars in STL headers
Date: Tue, 28 Apr 1998 13:11:28 -0700
Organization: Trillium Resources Corporation
Lines: 12
Message-ID: <354637F0.2B18@easystreet.com>
Reply-To: achrist AT easystreet DOT com
NNTP-Posting-Host: dial-35-078.easystreet.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

When I turn on the warning for shadow variables, I get warnings out
of the STL deque header file about a shadow variable named 'index'.

I don't expect that there are flagrant bugs in STL at present, but this
is sometimes a hard one to catch, e.g. -Wall doesn't flag it.  Does
anyone know for sure that this is not an error?  Isn't it a poor 
practice?

TIA for any info.


Al

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019