Possible Duplicate:
What is the difference between throw and throw with arg of caught exception?
Does catch (…) work on throw; with no object?
This will crash:
try
{
if(1)
throw;
}
catch(...)
{
printf("hi");
}
I thought I could do that but I guess not. What is the right way to throw when you don't need any information?