Boost C++ Libraries: Ticket #952: Visual C++ warning for boost::hash<std::size_t> https://svn.boost.org/trac10/ticket/952 <p> When compiling for 32 bit windows, Visual C++ warns that boost::hash&lt;std::size_t&gt; won't work for 64 bit windows because it doesn't supply an overload for the 64-bit <code>std::size_t</code>. It actually does, but the 32 bit compile doesn't see it as it's only included when compiling for 64-bit windows. So the warning is wrong in this case. But it is generally useful so it's a good idea to avoid it. For a full description of the problem, see <a class="ext-link" href="http://lists.boost.org/boost-users/2007/03/26450.php"><span class="icon">​</span>Joaquín's mail</a>. </p> <p> The proper solution is to add full support for <code>long long</code> - which has been in HEAD for some time. But if it isn't possible to add that to the post 1.34 release, a temporary fix will be to add the pragmas suggested by Joaquín. It would also be a good idea to clean up a mostly harmless inconsistency between the declaration and definition of the 64-bit <code>std::size_t</code> hash_value. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/952 Trac 1.4.3 Daniel James Thu, 17 May 2007 10:46:45 GMT owner changed; version, severity, milestone set https://svn.boost.org/trac10/ticket/952#comment:1 https://svn.boost.org/trac10/ticket/952#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">-</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>version</strong> → <span class="trac-field-new">release 1.34.0</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> → <span class="trac-field-new">Boost 1.34.1</span> </li> </ul> Ticket Daniel James Thu, 17 May 2007 20:57:00 GMT attachment set https://svn.boost.org/trac10/ticket/952 https://svn.boost.org/trac10/ticket/952 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">hash-warning.patch</span> </li> </ul> <p> Patch that hopefully fixes this. </p> Ticket Thomas Witt Thu, 17 May 2007 23:08:59 GMT owner changed https://svn.boost.org/trac10/ticket/952#comment:2 https://svn.boost.org/trac10/ticket/952#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Daniel James</span> to <span class="trac-author">Thomas Witt</span> </li> </ul> <p> Patch applied </p> Ticket Thomas Witt Thu, 17 May 2007 23:13:41 GMT status changed https://svn.boost.org/trac10/ticket/952#comment:3 https://svn.boost.org/trac10/ticket/952#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Daniel James Fri, 18 May 2007 19:49:47 GMT attachment set https://svn.boost.org/trac10/ticket/952 https://svn.boost.org/trac10/ticket/952 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">hash-warning2.patch</span> </li> </ul> <p> Fixes a mistake in the first patch. </p> Ticket Daniel James Fri, 18 May 2007 20:00:35 GMT <link>https://svn.boost.org/trac10/ticket/952#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/952#comment:4</guid> <description> <p> Thanks for checking the patch in. I just tried it on some more compilers and found a mistake. The new patch fixes it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 24 May 2007 09:22:41 GMT</pubDate> <title>component changed https://svn.boost.org/trac10/ticket/952#comment:5 https://svn.boost.org/trac10/ticket/952#comment:5 <ul> <li><strong>component</strong> <span class="trac-field-old">functional</span> → <span class="trac-field-new">hash</span> </li> </ul> Ticket Thomas Witt Thu, 24 May 2007 18:01:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/952#comment:6 https://svn.boost.org/trac10/ticket/952#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket