I'd like to ask this question (also here), but this time about C++.
What is the difference in C++ between
try { /*some code here*/}
catch(MyException& ex)
{ throw ex;} //not just throw
and
try { /*some code here*/}
catch(MyException& ex)
{ throw;} //not throw ex
Is it just in the stack trace (which in C++ is in any case not a standard as in C# or Java)?
(If it makes any difference, I use MSVS 2008.)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…