|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56338 - trunk/boost/date_time/gregorian
From: andrey.semashev_at_[hidden]
Date: 2009-09-21 11:27:53
Author: andysem
Date: 2009-09-21 11:27:52 EDT (Mon, 21 Sep 2009)
New Revision: 56338
URL: http://svn.boost.org/trac/boost/changeset/56338
Log:
Refs #3308. Changed the internal type of the gregorian dates to 32 bit integer.
Text files modified:
trunk/boost/date_time/gregorian/greg_calendar.hpp | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
Modified: trunk/boost/date_time/gregorian/greg_calendar.hpp
==============================================================================
--- trunk/boost/date_time/gregorian/greg_calendar.hpp (original)
+++ trunk/boost/date_time/gregorian/greg_calendar.hpp 2009-09-21 11:27:52 EDT (Mon, 21 Sep 2009)
@@ -2,27 +2,28 @@
#define GREGORIAN_GREGORIAN_CALENDAR_HPP__
/* Copyright (c) 2002,2003 CrystalClear Software, Inc.
- * Use, modification and distribution is subject to the
+ * Use, modification and distribution is subject to the
* Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
- * Author: Jeff Garland
+ * Author: Jeff Garland
* $Date$
*/
-#include "boost/date_time/gregorian/greg_weekday.hpp"
-#include "boost/date_time/gregorian/greg_day_of_year.hpp"
-#include "boost/date_time/gregorian_calendar.hpp"
-#include "boost/date_time/gregorian/greg_ymd.hpp"
-#include "boost/date_time/int_adapter.hpp"
+#include <boost/cstdint.hpp>
+#include <boost/date_time/gregorian/greg_weekday.hpp>
+#include <boost/date_time/gregorian/greg_day_of_year.hpp>
+#include <boost/date_time/gregorian_calendar.hpp>
+#include <boost/date_time/gregorian/greg_ymd.hpp>
+#include <boost/date_time/int_adapter.hpp>
namespace boost {
namespace gregorian {
-
+
//!An internal date representation that includes infinities, not a date
- typedef date_time::int_adapter<unsigned long> fancy_date_rep;
+ typedef date_time::int_adapter<uint32_t> fancy_date_rep;
//! Gregorian calendar for this implementation, hard work in the base
- class gregorian_calendar :
+ class gregorian_calendar :
public date_time::gregorian_calendar_base<greg_year_month_day, fancy_date_rep::int_type> {
public:
//! Type to hold a weekday (eg: Sunday, Monday,...)
@@ -34,14 +35,14 @@
//! Date rep implements the traits stuff as well
typedef fancy_date_rep date_traits_type;
-
+
private:
};
} } //namespace 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