Это мой код C++:
Код: Выделить всё
try {
throw std::runtime_error("Test exception");
} catch (...) {
auto eptr = std::current_exception();
try {
std::rethrow_exception(eptr);
} catch (const std::exception& e) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79237502/stdrethrow-exception-not-catchable-with-catch-const-stdexception-in-a[/url]
Мобильная версия