Opened 8 years ago

#3608 new Bugs

run time warning in vc9 when parsing ptime (with patch)

Reported by: anonymous Owned by: az_sw_dude
Milestone: Boost 1.41.0 Component: date_time
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:


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)

Attachments (1)

boost-date_time-parse_ptrime_runtime_type_mismatch.patch (452 bytes) - added by Thomas.Lemm@… 8 years ago.
the patch

Download all attachments as: .zip

Change History (1)

Changed 8 years ago by Thomas.Lemm@…

the patch

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain az_sw_dude.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.