B
Ben
I have been experiencing which I've managed to simplify down to the
following code. Is my assertion in the code misplaced? My compiler
(MSVC++ 6) hits the assert when I believe it should just abort after
the second throw.
#include <windows.h>
#include <assert.h>
void anotherFunction()
{
int *p = 0;
if(!p)
throw 1;
assert(false); // shouldn't get here, should we?
}
int main()
{
try
{
anotherFunction();
}
catch(int)
{
throw;
}
return 0;
}
Regards
Ben
following code. Is my assertion in the code misplaced? My compiler
(MSVC++ 6) hits the assert when I believe it should just abort after
the second throw.
#include <windows.h>
#include <assert.h>
void anotherFunction()
{
int *p = 0;
if(!p)
throw 1;
assert(false); // shouldn't get here, should we?
}
int main()
{
try
{
anotherFunction();
}
catch(int)
{
throw;
}
return 0;
}
Regards
Ben