Opened 10 years ago

#7937 new Bugs

local_time_types.hpp tries to typedef local_microsec_clock on system without BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK

Reported by: p.brockamp@… Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.52.0 Severity: Problem
Keywords: BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK date_time local_sec_clock Cc:

Description

On platforms that don't define

BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK

(e.g. due to a missing gettimeofday()), in file local_time_types.hpp date_time tries to

typedef date_time::second_clock<local_date_time> local_sec_clock

This obvioulsy results in a compile error on such systems. This typedef should be embraced by an

#ifdef BOOST_DATE_TIME_HAS_HIGH_PRECISION_CLOCK

A patch is attached.

Attachments (1)

local_time_types.hpp.patch (721 bytes ) - added by p.brockamp@… 10 years ago.
Patch for bug in local_time_types.hpp

Download all attachments as: .zip

Change History (1)

by p.brockamp@…, 10 years ago

Attachment: local_time_types.hpp.patch added

Patch for bug in local_time_types.hpp

Note: See TracTickets for help on using tickets.