vector's at

Levente Farkas lfarkas@mindmaker.hu
Thu Sep 7 00:51:00 GMT 2000


Benjamin Kosnik wrote:
> 
> > After a brief and hasty look, it appears that the exception_support.h
> > header is not defining the preprocessor symbols that stl_vector.h is using.
> > Those symbols are all defined in stl_range_errors.h, but the functions
> > declared there aren't in use.  So we /would/ be getting vector<>::at and
> > throwing things, if we were using that header.
> 
> I've defined it in stl_config.h. I'll be checking this in shortly.
> 
> You are right, however. Cleaning up these files is a (low-priority) item..

I write too soon, since it's not always a problem. is with a 10 lines test
program it works and find the at function (since it's defined in stl_config.h
and it's included by stl_range_errors.h and it's included by stl_vector.h), 
BUT when I include one of my own header which include my other headers and 
other system headers it's broken. and the reason that those ifdef evaluated
az false in that case. today I'll investigate some time to find out what 
include files in which order have to included in order to diappear the at
function.

 -- Levente                           http://petition.eurolinux.org/index_html
 "The only thing worse than not knowing the truth is
  ruining the bliss of ignorance."


More information about the Libstdc++ mailing list