这是我的代码.
try { // code throws potentially unknown exception } catch (...) { std::exception_ptr eptr = std::current_exception(); // then what ? }
理想情况下,如果它是std :: exception,我想获得与异常相关联的字符串.
c++ exception c++11
c++ ×1
c++11 ×1
exception ×1