【发布时间】:2010-12-22 11:35:16
【问题描述】:
我想问this question(还有here),但这次是关于C++。
C++和C++有什么区别
try { /*some code here*/}
catch(MyException& ex)
{ throw ex;} //not just throw
和
try { /*some code here*/}
catch(MyException& ex)
{ throw;} //not throw ex
它只是在堆栈跟踪中吗(在 C++ 中无论如何都不是 C# 或 Java 中的标准)?
(如果有什么不同,我使用 MSVS 2008。)
【问题讨论】:
-
throw ex; // out of apartment -
@sehe 我的错,我完全没有抓住重点。