This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: vector's at


On Wed, Sep 06, 2000 at 02:46:03PM +0200, Levente Farkas wrote:
> hi,
> vector's at function in an ifdef __STL_THROW_RANGE_ERRORS and it seems to me
> this is not defined by default why ? and where can I define such platform
> (OS or gcc ?) specific defines ?
> yours.

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.

Looks like some overlap errors, is all.  Our exception_support.h file
makes some comments to this effect.  This might be a good opportunity to
merge them or some such.  It'll go on my miles-long "little things to fix
someday" list :-( if somebody doesn't beat me to it.


Phil

-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]