Re: Problem with std::out_of_ran ge
On May 23, 6:26 am, Rolf Magnus <ramag...@t-online.dewrote:
Sorry, I know its OT, but out of interest from which compiler??
Thanks
Mike
>
And that's different for abort()?
On May 23, 6:26 am, Rolf Magnus <ramag...@t-online.dewrote:
James Kanze wrote:
>
>
>
>
>
I get a full backtrace from unhandled exceptions.
>
On May 21, 8:08 pm, desktop <f...@sss.comwr ote:
Salt_Peter wrote:
[...]
If
you are going to use exceptions and not bother catching them, you are
waisting your time.
you are going to use exceptions and not bother catching them, you are
waisting your time.
Well does that not depend on what you want?
If I use a try/catch its because I want the program to continue after
the exception has been thrown. But sometimes I just want the program to
terminate and therefore I avoid using try/catch and just use a throw
statement.
the exception has been thrown. But sometimes I just want the program to
terminate and therefore I avoid using try/catch and just use a throw
statement.
In which case, abort() (or assert(0), to get line number and
file name) is generally better.
file name) is generally better.
I get a full backtrace from unhandled exceptions.
>
Thanks
Mike
When the program aborts because of an uncaught exception, it's undefined
whether the stack has been unwound and the context lost or not.
whether the stack has been unwound and the context lost or not.
And that's different for abort()?
Comment