[Boost-bugs] [Boost C++ Libraries] #9264: boost/date_time/local_time_adjustor.hpp requires more headers

Subject: [Boost-bugs] [Boost C++ Libraries] #9264: boost/date_time/local_time_adjustor.hpp requires more headers
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-18 14:49:33


#9264: boost/date_time/local_time_adjustor.hpp requires more headers
------------------------------+------------------------
 Reporter: sshannin@… | Owner: az_sw_dude
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: date_time
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
------------------------------+------------------------
 {{{
 #include <boost/date_time/local_time_adjustor.hpp>

 int main(int argc, char **argv)
 {}
 }}}

 This doesn't compile because the included headers appears to require
 others headers. I guess the root problem is really with `dst_rules.hpp`.

 Error (g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3):
 {{{
 In file included from
 /usr/local/include/boost_1_54_0/boost/date_time/local_time_adjustor.hpp:20:0,
                  from tmp.cpp:1:
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp: In static
 member function ‘static boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::date_type boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::local_dst_start_day(boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::year_type)’:
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp:317:45:
 error: ‘gregorian’ has not been declared
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp:321:30:
 error: ‘gregorian’ has not been declared
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp: In static
 member function ‘static boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::date_type boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::local_dst_end_day(boost::date_time::us_dst_rules<date_type_,
 time_duration_type_, dst_start_offset_minutes,
 dst_length_minutes>::year_type)’:
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp:330:30:
 error: ‘gregorian’ has not been declared
 /usr/local/include/boost_1_54_0/boost/date_time/dst_rules.hpp:334:30:
 error: ‘gregorian’ has not been declared
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9264>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC