Boost C++ Libraries: Ticket #10886: boost::hash_detail::hash_binary() Triggers GCC Strict Aliasing Warning https://svn.boost.org/trac10/ticket/10886 <p> <a class="ext-link" href="http://lists.boost.org/Archives/boost/2008/04/136209.php"><span class="icon">​</span>http://lists.boost.org/Archives/boost/2008/04/136209.php</a> discusses the issue and provides a fix, but the problem persists in develop. This fix is long overdue. </p> <p> The problem is that <code>boost::hash_detail::hash_binary()</code> casts its <code>char *</code> parameter to <code>std::size_t *</code> when called by <code>boost::hash_detail::float_hash_impl()</code>, which casts its <code>float</code> parameter to <code>char *</code> to pass as <code>boost::hash_detail::hash_binary()</code>'s <code>char *</code> argument, when called by <code>boost::hash_detail::float_hash_value()</code>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10886 Trac 1.4.3 andy@… Fri, 19 Dec 2014 13:55:32 GMT <link>https://svn.boost.org/trac10/ticket/10886#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10886#comment:1</guid> <description> <p> I'm going to submit a pull request on github for the fix. It's a one-liner and uses the memcpy convention used elsewhere in the file. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Mon, 05 Jan 2015 19:56:33 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/10886#comment:2 https://svn.boost.org/trac10/ticket/10886#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">fixed</span> </li> </ul> <p> Pull request at: <a class="ext-link" href="https://github.com/boostorg/functional/pull/3"><span class="icon">​</span>https://github.com/boostorg/functional/pull/3</a> </p> <p> I've cherry picked it into develop, will merge to master if there aren't any problems. </p> Ticket