]> git.pld-linux.org Git - packages/boost.git/blob - 002-date-time.patch
- rel 3; bunch of upstream patches (taken and filtered by FC team)
[packages/boost.git] / 002-date-time.patch
1 ------------------------------------------------------------------------
2 r84948 | danieljames | 2013-07-03 23:02:30 +0100 (Wed, 03 Jul 2013) | 4 lines
3
4 In C++11 the shared_ptr -> bool conversion is explicit. In custom time zone code, make the cast explicit. Fixes compilation failure in C++11
5
6 From [84626], by marshall.
7
8 ------------------------------------------------------------------------
9 --- 1_54_0/boost/date_time/local_time/custom_time_zone.hpp      (revision 84947)
10 +++ 1_54_0/boost/date_time/local_time/custom_time_zone.hpp      (revision 84948)
11 @@ -64,7 +64,7 @@
12      //! True if zone uses daylight savings adjustments
13      virtual bool has_dst() const
14      {
15 -      return (dst_calc_rules_); //if calc_rule is set the tz has dst
16 +      return (bool) dst_calc_rules_; //if calc_rule is set the tz has dst
17      }
18      //! Local time that DST starts -- NADT if has_dst is false
19      virtual posix_time::ptime dst_local_start_time(gregorian::greg_year y) const
This page took 0.061765 seconds and 3 git commands to generate.