Boost C++ Libraries: Ticket #7504: boost::interprocess::basic_vectorbuf calls std::char_traits<char>::pbump() with potentially mismatching data type https://svn.boost.org/trac10/ticket/7504 <p> <code>boost::interprocess::basic_vectorbuf::seekoff()</code> makes a call to <code>base_t::pbump()</code>, but the datatypes (may) mismatch for the parameter (and do on my system). <code>std::char_traits&lt;char&gt;::pbump()</code> takes an <code>int</code> (according to the standard), but <code>basic_vectorbuf()</code> is passing it a value of type <code>CharTraits::off_type</code>, which is implementation defined. Since <code>std::char_traits&lt;char&gt;::off_type</code> is <code>__int64</code> on my system, I am getting a warning about a conversion from <code>__int64</code> to <code>int</code>. </p> <p> I don't know what the most appropriate solution is (maybe just a <code>static_cast</code>), but it would be nice to have this resolved so I can get back down to 0 warnings in my codebase. </p> <p> I am using Visual Studio 2010 and the latest Boost (and I just check svn trunk and it has the same issue). I get this warning when creating a <code>boost::interprocess::basic_vectorstream</code> like so: </p> <p> <code>basic_vectorstream&lt;std::vector&lt;char&gt;, std::char_traits&lt;char&gt;&gt; vs;</code> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7504 Trac 1.4.3