Re: [Boost-bugs] [Boost C++ Libraries] #3741: asio::ip::address_v6.hpp: Missing braces around anonymous union

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3741: asio::ip::address_v6.hpp: Missing braces around anonymous union
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-01-03 14:36:46


#3741: asio::ip::address_v6.hpp: Missing braces around anonymous union
-------------------------------------------------+--------------------------
  Reporter: Peter Jansson <info@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.41.0 | Severity: Cosmetic
Resolution: | Keywords:
-------------------------------------------------+--------------------------

Comment (by jlcastillo@…):

 I fixed it just modifying the ws2tcpip.h header in MinGW like this:

 //#define IN6ADDR_ANY_INIT { 0 }
 //#define IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
 // JOSE:
 #define IN6ADDR_ANY_INIT {{{0}}}
 #define IN6ADDR_LOOPBACK_INIT {{{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}}

 You could also do it in Boost Asio address_v6.ipp, if you don't want to
 change MinGW headers, undefining and defining again. Anyway, I think it's
 a problem of MinGW, not Boost Asio.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3741#comment:2>
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:05 UTC