[Boost-bugs] [Boost C++ Libraries] #8287: _WIN32_WINDOWS breaks connect() on XP

Subject: [Boost-bugs] [Boost C++ Libraries] #8287: _WIN32_WINDOWS breaks connect() on XP
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-12 22:48:36


#8287: _WIN32_WINDOWS breaks connect() on XP
------------------------------------+---------------------------------------
 Reporter: toby_toby_toby@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.53.0 | Severity: Showstopper
 Keywords: win32 macro asio |
------------------------------------+---------------------------------------
 {{{
 #define _WIN32_WINDOWS 0x0501 // this macro causes exceptions in main()
 // without it works fine. by the way, WINVER 0x0501 works fine
 #include <boost/asio.hpp>
 int main(int argc, char** argv)
 {
         boost::asio::io_service s;
         boost::asio::deadline_timer dt( s ); // this will throw
         boost::asio::ip::tcp::acceptor a(s); // or this if you comment
 timer
         return 0;
 }
 }}}


 I have not updated (since 2002) Windows XP SP3, week-old fresh VS2010,
 boost 1.44 or 1.53 (both tested - same).

 Both deadline_timer and acceptor (and maybe something else) throwing here:


 {{{
 namespace boost {
 namespace asio {
 namespace detail {

 socket_select_interrupter::socket_select_interrupter()
 {
 ...
   if (socket_ops::connect(client.get(), (const socket_addr_type*)&addr,
       addr_len, ec) == socket_error_retval)
   boost::asio::detail::throw_error(ec, "socket_select_interrupter");
 // error core 10022.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8287>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC