tnintemann / rpms / boost

Forked from rpms/boost 4 years ago
Clone

Blame SOURCES/boost-1.54.0-date-time.patch

e796e9
------------------------------------------------------------------------
e796e9
r84948 | danieljames | 2013-07-03 23:02:30 +0100 (Wed, 03 Jul 2013) | 4 lines
e796e9
e796e9
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
e796e9
e796e9
From [84626], by marshall.
e796e9
e796e9
------------------------------------------------------------------------
e796e9
--- 1_54_0/boost/date_time/local_time/custom_time_zone.hpp	(revision 84947)
e796e9
+++ 1_54_0/boost/date_time/local_time/custom_time_zone.hpp	(revision 84948)
e796e9
@@ -64,7 +64,7 @@
e796e9
     //! True if zone uses daylight savings adjustments
e796e9
     virtual bool has_dst() const
e796e9
     {
e796e9
-      return (dst_calc_rules_); //if calc_rule is set the tz has dst
e796e9
+      return (bool) dst_calc_rules_; //if calc_rule is set the tz has dst
e796e9
     }
e796e9
     //! Local time that DST starts -- NADT if has_dst is false
e796e9
     virtual posix_time::ptime dst_local_start_time(gregorian::greg_year y) const