www.digitalmars.com         C & C++   DMDScript  

c++ - STL: dmc can't throw range errors?

reply Arjan Knepper <ask me.to> writes:
__STL_CAN_THROW_RANGE_ERRORS

Since this is not defined in stl_config.h. Cann't dmc really don't 
handle this?

Arjan
May 27 2003
parent reply "Walter" <walter digitalmars.com> writes:
I'm not sure what that is for!

"Arjan Knepper" <ask me.to> wrote in message
news:bavcid$spc$1 digitaldaemon.com...
 __STL_CAN_THROW_RANGE_ERRORS

 Since this is not defined in stl_config.h. Cann't dmc really don't
 handle this?

 Arjan

May 27 2003
parent reply Arjan Knepper <ask me.to> writes:
Check for valid ranges on vector etc. When the index is out of range it 
throws an exception.


Walter wrote:
 I'm not sure what that is for!
 
 "Arjan Knepper" <ask me.to> wrote in message
 news:bavcid$spc$1 digitaldaemon.com...
 
__STL_CAN_THROW_RANGE_ERRORS

Since this is not defined in stl_config.h. Cann't dmc really don't
handle this?

Arjan


May 27 2003
parent reply "Walter" <walter digitalmars.com> writes:
Ok. I don't know why that wouldn't work with dmc.

"Arjan Knepper" <ask me.to> wrote in message
news:bb02ul$11rb$1 digitaldaemon.com...
 Check for valid ranges on vector etc. When the index is out of range it
 throws an exception.


 Walter wrote:
 I'm not sure what that is for!

 "Arjan Knepper" <ask me.to> wrote in message
 news:bavcid$spc$1 digitaldaemon.com...

__STL_CAN_THROW_RANGE_ERRORS

Since this is not defined in stl_config.h. Cann't dmc really don't
handle this?

Arjan



May 28 2003
parent reply Richard Grant <fractal clark.net> writes:
 "Arjan Knepper" <ask me.to> wrote in message
 news:bavcid$spc$1 digitaldaemon.com...

__STL_CAN_THROW_RANGE_ERRORS

Since this is not defined in stl_config.h. Cann't dmc really don't
handle this?




If _STLP_NO_AT_MEMBER_FUNCTION is *not* defined, then _STL_CAN_THROW_RANGE_ERRORS *is* defined. dmc does not define _STLP_NO_AT_MEMBER_FUNCTION, and so _STL_CAN_THROW_RANGE_ERRORS is defined. Richard
May 28 2003
parent reply Arjan Knepper <ask me.to> writes:
Are we talking about the same STL? SGI/STL 3.3? I can't find that define.

Thanks,
Arjan

Richard Grant wrote:
"Arjan Knepper" <ask me.to> wrote in message
news:bavcid$spc$1 digitaldaemon.com...


__STL_CAN_THROW_RANGE_ERRORS

Since this is not defined in stl_config.h. Cann't dmc really don't
handle this?




If _STLP_NO_AT_MEMBER_FUNCTION is *not* defined, then _STL_CAN_THROW_RANGE_ERRORS *is* defined. dmc does not define _STLP_NO_AT_MEMBER_FUNCTION, and so _STL_CAN_THROW_RANGE_ERRORS is defined. Richard

May 29 2003
parent reply Richard Grant <fractal clark.net> writes:
In article <bb4dg9$2vkq$1 digitaldaemon.com>, Arjan Knepper says...
Are we talking about the same STL? SGI/STL 3.3? I can't find that define.

Sorry, no. STLport 4.5.3. Richard
May 29 2003
parent Arjan Knepper <ask me.to> writes:
Nothing to sorry about, I didn't mention it. So I'm the one to blame.

Anyway thanks for you intended help.

Arjan

Richard Grant wrote:
 In article <bb4dg9$2vkq$1 digitaldaemon.com>, Arjan Knepper says...
 
Are we talking about the same STL? SGI/STL 3.3? I can't find that define.

Sorry, no. STLport 4.5.3. Richard

May 29 2003