Subject: [Boost-bugs] [Boost C++ Libraries] #3608: run time warning in vc9 when parsing ptime (with patch)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-11 10:18:46
#3608: run time warning in vc9 when parsing ptime (with patch)
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: date_time
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
run time warning(loss of precision when converting between types) in vc9
(with run time checks enabled) when parsing ptime with year format
reproduceable testcase:
parse "20090101" with facet "%Y-%m-%dT%H:%M:%S%F" makes vc stop execution
to notify of mismatch.
the patch:
sets the local variable to unsigned int (instead of unsigned short)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3608> 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:01 UTC