<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 39: Endpoint requirements (or code) incorrect</title><link>https://sourceforge.net/p/asio/bugs/39/</link><description>Recent changes to 39: Endpoint requirements (or code) incorrect</description><atom:link href="https://sourceforge.net/p/asio/bugs/39/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 29 Feb 2008 01:33:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/asio/bugs/39/feed.rss" rel="self" type="application/rss+xml"/><item><title>Endpoint requirements (or code) incorrect</title><link>https://sourceforge.net/p/asio/bugs/39/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The data() requirement in Endpoint states that it can return a pointer and the implementation will perform a reinterpret_cast to sockaddr*. As the "type" column just says "a pointer", I assume the "implementation" mentioned is the asio implementation, not the Endpoint implementation.&lt;/p&gt;
&lt;p&gt;There is at least one point where this doesn't appear to be the case in 0.3.9. I changed my endpoint implementation to perform the reinterpret_cast itself to work around it.&lt;/p&gt;
&lt;p&gt;The line where I found the issue was:&lt;/p&gt;
&lt;p&gt;asio/detail/reactive_socket_service.hpp:1441&lt;/p&gt;
&lt;p&gt;It appears to be similar for all calls of data() though.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">AlexS</dc:creator><pubDate>Fri, 29 Feb 2008 01:33:55 -0000</pubDate><guid>https://sourceforge.netff24fd09a73fb4f955614d23ea9875038ae5057c</guid></item></channel></rss>