Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53626 - trunk/boost/date_time/gregorian
From: andrey.semashev_at_[hidden]
Date: 2009-06-04 07:29:04


Author: andysem
Date: 2009-06-04 07:29:04 EDT (Thu, 04 Jun 2009)
New Revision: 53626
URL: http://svn.boost.org/trac/boost/changeset/53626

Log:
Added explicit include of special_defs.hpp.
Text files modified:
   trunk/boost/date_time/gregorian/conversion.hpp | 10 +++++-----
   1 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/date_time/gregorian/conversion.hpp
==============================================================================
--- trunk/boost/date_time/gregorian/conversion.hpp (original)
+++ trunk/boost/date_time/gregorian/conversion.hpp 2009-06-04 07:29:04 EDT (Thu, 04 Jun 2009)
@@ -12,8 +12,9 @@
 #include <string>
 #include <stdexcept>
 #include <boost/throw_exception.hpp>
-#include <boost/date_time/gregorian/gregorian_types.hpp>
 #include <boost/date_time/c_time.hpp>
+#include <boost/date_time/special_defs.hpp>
+#include <boost/date_time/gregorian/gregorian_types.hpp>
 
 namespace boost {
 
@@ -28,11 +29,11 @@
         std::string s = "tm unable to handle ";
         switch (d.as_special())
         {
- case not_a_date_time:
+ case date_time::not_a_date_time:
             s += "not-a-date-time value"; break;
- case neg_infin:
+ case date_time::neg_infin:
             s += "-infinity date value"; break;
- case pos_infin:
+ case date_time::pos_infin:
             s += "+infinity date value"; break;
         default:
             s += "a special date value"; break;
@@ -60,7 +61,6 @@
                 static_cast<unsigned short>(datetm.tm_mday));
   }
 
-
 } } //namespace boost::gregorian
 
 #endif


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk