【发布时间】:2010-10-24 18:25:15
【问题描述】:
int somefunction(bool a)
{
try
{
if(a)
throw Error("msg");
return 2;
}
catch (Error const & error)
{
//do i need to return anything here??
//return -1;
}
}
【问题讨论】:
标签: c++ exception return-value