T
Taras_96
Hi everyone,
I recently came across a quiz question. Does the standard say anything
about catch(...) being the first catch statement?
try
{
}
catch(...) // <- 'hides' subsequent catching
{
}
catch(A)
{
}
catch(B)
{
}
I've seen numerous examples where catch(...) appears first (eg:
Bjorne), but code doesn't compile using MS C++, so does this mean that
the standard allows it, but some compilers don't?
Taras
I recently came across a quiz question. Does the standard say anything
about catch(...) being the first catch statement?
try
{
}
catch(...) // <- 'hides' subsequent catching
{
}
catch(A)
{
}
catch(B)
{
}
I've seen numerous examples where catch(...) appears first (eg:
Bjorne), but code doesn't compile using MS C++, so does this mean that
the standard allows it, but some compilers don't?
Taras