Upgraded boost

This commit is contained in:
Pedro Pinto authored and John Colvin committed 2021-10-03 14:39:36 -04:00
1 parent 930357d11c
commit ce98e862c3
13 files changed
+475 -474

No files matched your search

+6 -6
View File
@@ -49,8 +49,8 @@ long unix_now() {
(long)1E6;
}
std::chrono::system_clock::time_point
utc_ll_to_timepoint(unsigned long long ll) {
std::chrono::system_clock::time_point utc_ll_to_timepoint(
unsigned long long ll) {
auto us_since_epoch = ((ll & ticks_mask) - anchor_ticks) / ticks_per_micro;
return std::chrono::system_clock::time_point(
std::chrono::microseconds(us_since_epoch));
@@ -149,8 +149,8 @@ PTime ll_to_ptime(LLDateTime ll) {
boost::posix_time::microseconds(ticks_part / ticks_per_micro)));
}
extern "C" BTS_EXPORT int
ll_to_cstr(LLDateTime ll, char *buffer, int buffer_sz) {
extern "C" BTS_EXPORT int ll_to_cstr(
LLDateTime ll, char *buffer, int buffer_sz) {
const int str_sz = sizeof("20121204-14:44:02.000");
bts_assert(buffer_sz >= str_sz);
auto str = FIX_timestamp(ll_to_ptime(ll));
@@ -218,8 +218,8 @@ std::string FIX_date_time_string(PTime const &t) {
sprintf(
&result[0], "%d%02d%02d-%02d:%02d:%02d", (unsigned short)t.date().year(),
t.date().month().as_number(), t.date().day().as_number(),
t.time_of_day().hours(), t.time_of_day().minutes(),
t.time_of_day().seconds());
(int)t.time_of_day().hours(), (int)t.time_of_day().minutes(),
(int)t.time_of_day().seconds());
return result;
}