ClazyChen / ds-lab

A series of experiments of subject Data Structure for kaoyan-exam students
MIT License
112 stars 13 forks source link

stack overflow不能被try-catch接到 #22

Open ClazyChen opened 1 year ago

ClazyChen commented 1 year ago

MSVC下stack overflow为结构化的exception 使用MSVC的__try宏报错,直接用C++原生的try-catch无法捕获stack overflow 目前采用的解决方案是在Algorithm端显式抛出异常避免stack overflow 有待进一步学习MSVC的异常机制