Wie rufe ich what () auf std :: exception_ptr auf?
Das ist der Code, den ich habe.
try
{
// code throws potentially unknown exception
}
catch (...)
{
std::exception_ptr eptr = std::current_exception();
// then what ?
}
Im Idealfall möchte ich die der Ausnahme zugeordnete Zeichenfolge erhalten, wenn es sich um eine std :: exception handelt.