rust-os.02 栈展开
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include <iostream>#include <string> void b() { throw std::exception(); } void a() { std::string str = "Oops"; b(); } int main() { try { a(); } catch(...) { } } 上面代码在堆栈展开过程中会发生以下情