bug in boost/date_time/time_system_split.hpp - wrong static_cast

14 Oct
2004
14 Oct
'04
9:26 a.m.
Hi there I've found a minor bug in time_system_split.hpp. In the following code date_duration_type day_overflow(static_cast<int_type>(doff)); int_type is __int64 if BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG is on. But date_duration_type contructor expects int_adaptor<long> instead. So static_cast is useless here. I think, that right code should look like this: date_duration_type day_overflow(static_cast<date_duration_type::duration_rep_type>(doff)); Proposed patch's attached to this post. -- ______________________________ Vyacheslav E. Andrejev System Architect Excelsior, LLC E-mail: vandrejev@excelsior-usa.com ICQ: 7152604
7544
Age (days ago)
7544
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vyacheslav E. Andrejev