Opened 12 years ago

Closed 12 years ago

#5058 closed Bugs (duplicate)

bug in subsecond_duration class in time_duration.hpp

Reported by: Edward Rankin <erankin@…> Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.45.0 Severity: Problem
Keywords: Cc:

Description

When using boost::posix_time::microseconds() with a large value, an incorrect value is stored in the resulting object.

It turns out there is a bug in the operator order within subsecond_duration and I have attached a patch to fix this problem.

Attachments (1)

time_duration.hpp.diff (428 bytes ) - added by Edward Rankin <erankin@…> 12 years ago.

Download all attachments as: .zip

Change History (2)

by Edward Rankin <erankin@…>, 12 years ago

Attachment: time_duration.hpp.diff added

comment:1 by Edward Rankin <erankin@…>, 12 years ago

Resolution: duplicate
Status: newclosed

Sorry, I must be blind. This problem was already posted in Ticker #3471.

Note: See TracTickets for help on using tickets.