Boost C++ Libraries: Ticket #11808: ip::address::from_string() is not crossplatform https://svn.boost.org/trac10/ticket/11808 <p> On Windows WSAStringToAddressA() accepts A.B.C.D and A.B.C.D:PORT, but on linux inet_pton only accepts A.D.B.D (:PORT causes an error). Therefore, Windows users don't have an exception that linux users have. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11808 Trac 1.4.3 anonymous Fri, 20 Nov 2015 09:02:10 GMT <link>https://svn.boost.org/trac10/ticket/11808#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11808#comment:1</guid> <description> <p> #include &lt;boost/asio.hpp&gt; #include &lt;iostream&gt; </p> <p> using namespace std; using namespace boost::asio; </p> <p> int main() { </p> <blockquote> <p> try { </p> <blockquote> <p> cout &lt;&lt; "Address: " &lt;&lt; ip::address::from_string("127.0.0.1:80") &lt;&lt; "\n"; </p> </blockquote> <p> } catch (...) { </p> <blockquote> <p> cout &lt;&lt; "Exception.\n"; <em>&lt; Not reached on Windows </em></p> </blockquote> <p> } return 0; </p> </blockquote> <p> } </p> </description> <category>Ticket</category> </item> </channel> </rss>