basic_stream doesn't use try-catch with no-exceptions.

This commit is contained in:
Klemens
2023-01-04 09:22:03 +08:00
committed by Klemens Morgenstern
parent 7453ce3260
commit e88185f765

View File

@@ -149,6 +149,7 @@ close() noexcept
error_code ec; error_code ec;
socket.close(ec); socket.close(ec);
} }
#if !defined(BOOST_NO_EXCEPTIONS)
try try
{ {
timer.cancel(); timer.cancel();
@@ -156,6 +157,9 @@ close() noexcept
catch(...) catch(...)
{ {
} }
#else
timer.cancel();
#endif
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------