Вопросы по теме 'nested-exceptions'

Как можно выполнить dynamic_cast из std::exception в std::nested_exception?
Я только что видел код, содержащий dynamic_cast от std::exception до std::nested_exception , например, try { std::throw_with_nested(std::runtime_error("error")); } catch (std::exception &e) { auto &nested =...
549 просмотров