相关疑难解决方法(0)

如何调用std :: exception_ptr上的what()

这是我的代码.

try
{
// code throws potentially unknown exception
}
catch (...)
{
    std::exception_ptr eptr =  std::current_exception();
        // then what ?
}
Run Code Online (Sandbox Code Playgroud)

理想情况下,如果它是std :: exception,我想获得与异常相关联的字符串.

c++ exception c++11

28
推荐指数
3
解决办法
1万
查看次数

标签 统计

c++ ×1

c++11 ×1

exception ×1