Re: [boost] [system] - system_message and gai_strerror function

And there's also the error EAI_SYSTEM, which means that the actual error value is to be found in errno instead.
I was also thinking about that - something about re-assign?!
There's also the problem of the error asio::error::eof, which corresponds to a real error on Windows, but is synthesised on POSIX platforms.
What about adding EEOF -1 (or so) inside error_code.hpp and apply a switch-statement inside system_message? regards, Oliver

Oliver.Kowalke@qimonda.com wrote:
Christopher Kohlhoff wrote:
There's also the problem of the error asio::error::eof, which corresponds to a real error on Windows, but is synthesised on POSIX platforms.
What about adding EEOF -1 (or so) inside error_code.hpp and apply a switch-statement inside system_message?
That's essentially what I do in the boost::asio::error class right now. It would be nice to find a more generic solution, however. Cheers, Chris
participants (2)
-
Christopher Kohlhoff
-
Oliver.Kowalke@qimonda.com