Subject: [Boost-bugs] [Boost C++ Libraries] #2757: Warning C4244: conversion from 'int' to 'unsigned short' in microsec_time_clock.hpp line 103
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-13 08:30:40
#2757: Warning C4244: conversion from 'int' to 'unsigned short' in
microsec_time_clock.hpp line 103
------------------------------+---------------------------------------------
Reporter: james_at_[hidden] | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: date_time
Version: Boost 1.38.0 | Severity: Cosmetic
Keywords: |
------------------------------+---------------------------------------------
With Visual Studio 2005, the compiler raises the following warning:
{{{
c:\programme\boost\boost_1_38_0\boost\date_time\microsec_time_clock.hpp(103)
: warning C4244: 'argument' : conversion from 'int' to 'unsigned short',
possible loss of data
}}}
The members of the std::tm struct are ints, but the greg_year type is
declared as unsigned short in greg_year.hpp.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2757> 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:49:59 UTC