Ticket #6860: negative_time_duration.patch
File negative_time_duration.patch, 663 bytes (added by , 10 years ago) |
---|
-
boost/date_time/time_facet.hpp
801 801 char_type c = '\0'; 802 802 if((sitr != stream_end) && (*sitr == '-' || *sitr == '+')) { 803 803 c = *sitr; 804 ++sitr; 804 805 } 805 806 806 807 typedef typename time_duration_type::hour_type hour_type; … … 921 922 } 922 923 923 924 td = time_duration_type(hour, min, sec, frac); 925 if (c == '-') 926 td = td.invert_sign(); 924 927 return sitr; 925 928 } 926 929 … … 1364 1367 1365 1368 1366 1369 #endif 1367