Boost C++ Libraries: Ticket #5110: address_v6 to_string on windows XP throws exception https://svn.boost.org/trac10/ticket/5110 <p> I have the following piece of code: </p> <blockquote> <p> unsigned char a<a class="changeset" href="https://svn.boost.org/trac10/changeset/16" title="*** empty log message *** ">[16]</a> = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17}; boost::array&lt;unsigned char, 16&gt; data; for (int i = 0; i &lt; 16; ++i) { </p> <blockquote> <p> data[i] = a[i]; </p> </blockquote> <p> } boost::asio::ip::address_v6 b(data); b.to_string(); </p> </blockquote> <p> This works on all platforms I have tried it on (Linux, OS X, Windows 7), except on Windows XP. On XP, it throws the following exception: </p> <blockquote> <p> boost::exception_detail::clone_impl&lt;struct boost::exception_detail::error_info_injector&lt;class boost::system::system_error&gt; &gt; An invalid argument was supplied </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5110 Trac 1.4.3 Remko Tronçon <remko@…> Sat, 22 Jan 2011 16:58:24 GMT <link>https://svn.boost.org/trac10/ticket/5110#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5110#comment:1</guid> <description> <p> Sorry about this report, you can close this ticket. It seems Windows XP doesn't come with IPv6 enabled by default; enabling it solves my problem. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Sat, 22 Jan 2011 17:03:19 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5110#comment:2 https://svn.boost.org/trac10/ticket/5110#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> Ticket