【发布时间】:2009-05-25 21:25:43
【问题描述】:
问题 1:
是否有可能抛出一个不会被 std::exception 捕获的异常?
try
{
}
catch(std::exception & e)
{
}
catch(...)
{
//Is this block needed?
}
问题 2:
有没有更好:
catch(std::exception & e)
或者
catch(std::exception e)
或者
catch(const std::exception &e)//<--- this is the method I usually use
【问题讨论】: