|
Boost : |
From: Ruediger Berlich (ruediger.berlich_at_[hidden])
Date: 2008-07-13 15:03:45
Hi there,
when compiling my application with the current trunk version of Boost 1.36
(OpenSUSE 11, gcc 4.3.1, 64 bit), I get the following compiler error:
/opt/boostinclude/boost/date_time/tz_db_base.hpp:161: error: declaration
of âtypedef class boost::date_time::dst_adjustment_offsets<typename
time_zone_type::time_duration_type>
boost::date_time::tz_db_base<time_zone_type,
rule_type>::dst_adjustment_offsetsâ /opt/boostinclude/boost/date_time/time_zone_base.hpp:76:
error: changes meaning of âdst_adjustment_offsetsâ from âclass
boost::date_time::dst_adjustment_offsets<typename
time_zone_type::time_duration_type>â
This can be easily amended with a minimal change in
boost/date_time/tz_db_base.hpp - see below for a change that works for me.
As I cannot see that it can do any harm to other parts of Boost, I'm
wondering whether it could still find its way into the upcoming Boost
release.
161c161
< typedef dst_adjustment_offsets<time_duration_type>
dst_adjustment_offsets_tdt;
--- > typedef dst_adjustment_offsets<time_duration_type> dst_adjustment_offsets; 349c349 < dst_adjustment_offsets_tdt adjust(time_duration_type(0,0,0), --- > dst_adjustment_offsets adjust(time_duration_type(0,0,0), 356c356 < adjust = dst_adjustment_offsets_tdt( --- > adjust = dst_adjustment_offsets( Best, Ruediger
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk