Boost C++ Libraries: Ticket #7699: theres no way to solve that for the hash function : warning C4244 https://svn.boost.org/trac10/ticket/7699 <p> warning C4244: 'argument' : conversion from 'std::streamsize' to 'size_t', possible loss of data compiling this: basic_binary_iprimitive.hpp </p> <p> example code: namespace boost { </p> <blockquote> <p> template &lt;&gt; struct hash&lt;ATypeHere&gt; { </p> <blockquote> <p> inline size_t operator()(const ATypeHere &amp; obj_p ) const { </p> <blockquote> <p> <em> return something </em></p> </blockquote> <p> } </p> </blockquote> <p> }; </p> </blockquote> <p> } </p> <p> If you change size_t to std::streamsize, you will get the exactly same warning, but inverted (in a different place) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7699 Trac 1.4.3 anonymous Thu, 15 Nov 2012 15:15:06 GMT summary changed https://svn.boost.org/trac10/ticket/7699#comment:1 https://svn.boost.org/trac10/ticket/7699#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">theres no way to solve that for the hash function : C4244</span> → <span class="trac-field-new">theres no way to solve that for the hash function : warning C4244</span> </li> </ul> Ticket Robert Ramey Wed, 06 Feb 2013 20:41:07 GMT <link>https://svn.boost.org/trac10/ticket/7699#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7699#comment:2</guid> <description> <p> hmmm - think i've fixed this - but I can't tell from the description here. For now I'm going to close this ticket pending more information. </p> <p> RObert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 06 Feb 2013 20:50:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7699#comment:3 https://svn.boost.org/trac10/ticket/7699#comment:3 <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> Ticket