A typical analysis of a problem

 

 In main.cpp in:

#include <iostream>
#include "Exception.h"
using namespace std; using namespace DTLib; int main() { try { NullPointerException npe; cout << "throw" << endl; throw npe; } catch(const Exception& e) { cout << "catch" << endl; } return 0; }

 

测试结果表明在这个示例下没有问题。

 

Guess you like

Origin www.cnblogs.com/-glb/p/12313882.html