Subject: [Boost-bugs] [Boost C++ Libraries] #4055: msvc C4244 warning in boost/iostreams/detail/buffer.hpp(151).
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-31 09:43:44
#4055: msvc C4244 warning in boost/iostreams/detail/buffer.hpp(151).
----------------------------+-----------------------------------------------
Reporter: pluto@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: iostreams
Version: Boost 1.42.0 | Severity: Problem
Keywords: |
----------------------------+-----------------------------------------------
hi,
the boost.iostream compilation with stlport-5.2.1 produces a warning:
{{{
boost_1_42_0/boost/iostreams/detail/buffer.hpp(151) : warning C4244:
'argument' : conversion from 'stlp_std::streamsize' to
'stlp_std::allocator<_Tp>::size_type', possible loss of data
}}}
the streamsize definition from preprocessed stlport char_traits:
{{{
//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;
}}}
passing __int64 data for size_t argument on win32 doesn't look good.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4055> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC