Have you read this part of the Boost.Asio manual?
:
" , throw(), run_one(), poll() poll_one(). , - , . .
, , catch.
UPDATE
, , , throw . try , catch - . ( ) .
void some_function()
{
if (error_occurred)
throw std::exception;
}
void some_calling_function()
{
try {
some_function();
} catch (std::exception& e) {
}
}
share