Closed XhmikosR closed 6 years ago
I did not notice it as I don't have Vista. Can you provide the error code ?
@AndreaLanfranchi this is a build warning, not a runtime warning. I obviously don't have Vista either, no sane person has :P
It would be interesting to know why it should fail on such OSes
You could try checking Boost's own documentation.
Checked ... might be related to the missing definition of BOOST_ASIO_ENABLE_CANCELIO. Problem is this definition apparently MUST be included in all source files and, anyway, it does not guarantee to cancel properly pending IO until the socket is closed.
My suggestion is to trap error and continue ... few lines after socket is closed.
Maybe a combination of the 2 solutions you describe would be the best approach?
So we are getting this warning:
@AndreaLanfranchi: do we need to define something ourselves/change the code? I mean, < Vista isn't supported by the Windows binaries at all.