Boost Asio if condition evaluated differently in static-lib and dll compilations, former resulting in exception in socket io cpp client lib
问题 Depending on how the socketio c++ library is compiled (static-lib or dll) for the following simple test code, the outcome is either a working executable or one that throws an exception. However, if the instantiation of the io_service is commented out, eg.: // boost::asio::io_service io_service; then the static-lib based version is also working without exception. It seems that there is some interference between the io_service instantiated in main() with the io_service located in the socketIO