阅读背景:

catch-all处理程序中的exception_ptr在Centos 7和Windows上都很奇怪

来源:互联网 

To avoid stacking catch blocks in writing exception handling code, I thought to try to write a catch-all exception handler using the c++11 features. In doing so I noticed some odd behavior that worked the same way on both Centos 7 and Windows 7 and 8.1 using Code::Blocks IDE on both systems (you have to check the settings->compiler->c++11 ISO checkbox to get this to work.) I had two kinds of exceptions, a hardware divide by zero To avoid stacking catch blocks in writing excep




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: