Re: [asio-users] asio and good error handling
Brought to you by:
chris_kohlhoff
From: Vinnie F. <vin...@gm...> - 2018-12-28 13:50:14
|
On Fri, Dec 28, 2018 at 4:13 AM Matt Gruenke <mat...@jc...> wrote: > else if (error != asio::error::make_error_code( asio::error::operation_aborted ) && Umm........errrrmm.... how do I put this... ...there's no need to call make_error_code, in fact calls to make_error_code should be rare. This function is called for you by the implementation to implicitly convert an error enumeration value to error_code. Your code above could be written as: else if (error != asio::error::operation_aborted && On the bright side, this will save you some typing going forward :) :) :) Regards |