Boost C++ Libraries: Ticket #11034: boost::iostreams::copy: conversion from 'std::streamsize' to 'int' https://svn.boost.org/trac10/ticket/11034 <p> When using &lt;boost/iostreams/copy.hpp&gt; in VS 2013 Update 2, I've got </p> <p> boost\iostreams\copy.hpp(128): warning C4244: 'argument' : conversion from 'std::streamsize' to 'int', possible loss of data </p> <p> I'm passing <code>ifstream</code> through <code>copy</code> to Poco SHA1, and the files are more than 2 GB long. It is not easy to tell if hashes for the files are correct, but from source code it seems that they are not. </p> <p> The strange row "size_(buffer_size) <em> Cast for <a class="missing wiki">SunPro</a> 5.3." looks like it was made deliberately to fix some other bug. </em></p> <p> Trying to hotfix this bug I run into a problem, that the type should be std::streamsize and std::size_t simultaneosly. size_t is required by std::allocator::allocate. I've found similar problem here: </p> <p> <a class="ext-link" href="https://svn.boost.org/trac/boost/ticket/7873"><span class="icon">​</span>https://svn.boost.org/trac/boost/ticket/7873</a> </p> <p> Unfortunately I don't understand the code well enough to workaround that allocator parameter issue. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11034 Trac 1.4.3