|
Boost : |
From: boost (boost_at_[hidden])
Date: 2002-09-13 02:25:40
Salut,
On Thursday 12 September 2002 14:28, Toon Knapen wrote:
> the bounds checking mechanism throws an exception instead of performing an
> assert. But I have no clue how I can ask my debugger where the exception
> was thrown so I would prefer an assert() to be used. In the debugger, it's
> then easy to perform a stack_trace.
a simple solution is to use the preprocessor to replace 'throw' with
a function, in wich you can set the breakpoint; see below.
Best wishes,
Peter
--------
void MyThrow()
{
int i=0;
++i;
}
#define throw MyThrow();//
int main()
{
int i=13;
throw "Error";
return 0;
}
#undef MyThrow
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk