Open ghost opened 3 years ago
@fsmoke commented on May 7, 2020, 9:17 AM UTC:
I have the same issue - VS 2019 - x86 project configuration
I'm still getting both of those issues mentioned in the first post... Visual Studio v17.7.7 (latest update as of this post) Boost v1.86.0 (again, the latest)
Give it's not been fixed in the code and rarely mentioned am i missing some pre step for the ASIO which would of prevented this error as i'm using the headers directly from the download, or is it just a windows issue that most people just ignore?
@wyattoday commented on May 30, 2019, 12:49 PM UTC:
When compiling an app using ASIO and a newer version of Visual Studio (for example, VS 2019) a bunch of warnings are emitted:
The solution is, on line 609 of win_iocp_socket_service_base.ipp, change the line to this:
Similarly, in
boost\asio\impl\serial_port_base.ipp(511,28): warning C4242: '=': conversion from 'const unsigned int' to 'BYTE', possible loss of data (compiling source file GlobalVars.cpp)
:Fix:
This issue was moved by chriskohlhoff from boostorg/asio#246.