updated boost on windows

This commit is contained in:
Bassem Girgis
2019-08-13 21:48:48 -05:00
parent 7d77d485fd
commit b40a3bee82
5162 changed files with 473027 additions and 116452 deletions

View File

@@ -11,6 +11,7 @@
#include <string>
#include <boost/config.hpp>
#include "boost/date_time/compiler_config.hpp"
#include "boost/date_time/special_defs.hpp"
@@ -193,10 +194,15 @@ namespace date_time {
const time_rep_type& rhs)
{
date_duration_type dd = lhs.day - rhs.day;
time_duration_type td(dd.days()*24,0,0); //days * 24 hours
time_duration_type td2 = lhs.time_of_day - rhs.time_of_day;
return td+td2;
// return time_rep_type(base.day-dd, base.time_of_day);
if (BOOST_LIKELY(!dd.is_special())) {
time_duration_type td(dd.days()*24,0,0); // days * 24 hours
time_duration_type td2 = lhs.time_of_day - rhs.time_of_day;
return td+td2;
} else {
time_duration_type td(dd.as_special());
time_duration_type td2 = lhs.time_of_day - rhs.time_of_day;
return td+td2;
}
}
};