Boost C++ Libraries: Ticket #4055: msvc C4244 warning in boost/iostreams/detail/buffer.hpp(151). https://svn.boost.org/trac10/ticket/4055 <p> hi, </p> <p> the boost.iostream compilation with stlport-5.2.1 produces a warning: </p> <pre class="wiki">boost_1_42_0/boost/iostreams/detail/buffer.hpp(151) : warning C4244: 'argument' : conversion from 'stlp_std::streamsize' to 'stlp_std::allocator&lt;_Tp&gt;::size_type', possible loss of data </pre><p> the streamsize definition from preprocessed stlport char_traits: </p> <pre class="wiki">//The Win32 file io API support 64 bits access so streamoff and streamsize //has to reflect that. Do not change the stringbuf behavior. typedef __int64 streamoff; typedef streamoff streamsize; </pre><p> passing <span class="underline">int64 data for size_t argument on win32 doesn't look good. </span></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4055 Trac 1.4.3 Daniel James Wed, 31 Mar 2010 10:27:01 GMT owner, status changed https://svn.boost.org/trac10/ticket/4055#comment:1 https://svn.boost.org/trac10/ticket/4055#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jonathan Turkanis</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I don't think it's going to overflow, since <code>size_</code> is always set from an <code>int</code> (which probably should be <code>std::size_t</code>, or <code>allocator::size_type</code> but I'm not going to change that, as I don't want to change the interface). But I'll look into fixing the warning. </p> Ticket pluto@… Wed, 31 Mar 2010 11:03:09 GMT <link>https://svn.boost.org/trac10/ticket/4055#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4055#comment:2</guid> <description> <p> you can use an explicit static_cast&lt;std::size_t&gt;(size_) or #pragma warning disable/default. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 18 Apr 2010 10:31:57 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4055#comment:3 https://svn.boost.org/trac10/ticket/4055#comment:3 <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> <p> I think this was fixed in <a class="changeset" href="https://svn.boost.org/trac10/changeset/61208" title="Try to avoid a warning. ">[61208]</a>. </p> Ticket