You’re not gonna catch this…
C++ exceptions can be surprising. This works easily:
try
{
throw(1);
}
catch(…) //Catch all
{
//caught
}
But if you replace “throw(1);” with “throw;”, it suddenly doesn’t work anymore. Code compiles, exception is thrown, but it’s not caught. The program is terminated…