Subject: [Boost-bugs] [Boost C++ Libraries] #7699: theres no way to solve that for the hash function : C4244
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-15 15:14:30
#7699: theres no way to solve that for the hash function : C4244
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: ramey
Type: Support Requests | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost 1.50.0 | Severity: Problem
Keywords: warning fix |
------------------------------+---------------------------------------------
warning C4244: 'argument' : conversion from 'std::streamsize' to 'size_t',
possible loss of data
compiling this: basic_binary_iprimitive.hpp
example code:
namespace boost {
template <>
struct hash<ATypeHere>
{
inline size_t operator()(const ATypeHere & obj_p ) const
{
// return something
}
};
}
If you change size_t to std::streamsize, you will get the exactly same
warning, but inverted (in a different place)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7699> 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:11 UTC