linux 构造函数 throw,构造函数抛出异常
#include class bar{public:bar(){std::cout << "bar() called" << std::endl;}~bar(){std::cout << "~bar() called" << std::endl;}};class foo{public:foo(): b(new bar()){std::cout &