diff options
Diffstat (limited to 'boost/date_time/gregorian')
-rw-r--r-- | boost/date_time/gregorian/greg_day.hpp | 6 | ||||
-rw-r--r-- | boost/date_time/gregorian/greg_month.hpp | 6 | ||||
-rw-r--r-- | boost/date_time/gregorian/greg_weekday.hpp | 4 | ||||
-rw-r--r-- | boost/date_time/gregorian/greg_year.hpp | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/boost/date_time/gregorian/greg_day.hpp b/boost/date_time/gregorian/greg_day.hpp index 8cadc6c7e5..014abfbda0 100644 --- a/boost/date_time/gregorian/greg_day.hpp +++ b/boost/date_time/gregorian/greg_day.hpp @@ -42,9 +42,9 @@ namespace gregorian { */ class BOOST_SYMBOL_VISIBLE greg_day : public greg_day_rep { public: - greg_day(unsigned short day_of_month) : greg_day_rep(day_of_month) {} - unsigned short as_number() const {return value_;} - operator unsigned short() const {return value_;} + greg_day(value_type day_of_month) : greg_day_rep(day_of_month) {} + value_type as_number() const {return value_;} + operator value_type() const {return value_;} private: }; diff --git a/boost/date_time/gregorian/greg_month.hpp b/boost/date_time/gregorian/greg_month.hpp index d46343353f..be0f93e13b 100644 --- a/boost/date_time/gregorian/greg_month.hpp +++ b/boost/date_time/gregorian/greg_month.hpp @@ -61,11 +61,11 @@ namespace gregorian { greg_month(month_enum theMonth) : greg_month_rep(static_cast<greg_month_rep::value_type>(theMonth)) {} //! Construct from a short value - greg_month(unsigned short theMonth) : greg_month_rep(theMonth) {} + greg_month(value_type theMonth) : greg_month_rep(theMonth) {} //! Convert the value back to a short - operator unsigned short() const {return value_;} + operator value_type() const {return value_;} //! Returns month as number from 1 to 12 - unsigned short as_number() const {return value_;} + value_type as_number() const {return value_;} month_enum as_enum() const {return static_cast<month_enum>(value_);} const char* as_short_string() const; const char* as_long_string() const; diff --git a/boost/date_time/gregorian/greg_weekday.hpp b/boost/date_time/gregorian/greg_weekday.hpp index 263ef5df99..815051ede4 100644 --- a/boost/date_time/gregorian/greg_weekday.hpp +++ b/boost/date_time/gregorian/greg_weekday.hpp @@ -41,11 +41,11 @@ namespace gregorian { class BOOST_DATE_TIME_DECL greg_weekday : public greg_weekday_rep { public: typedef boost::date_time::weekdays weekday_enum; - greg_weekday(unsigned short day_of_week_num) : + greg_weekday(value_type day_of_week_num) : greg_weekday_rep(day_of_week_num) {} - unsigned short as_number() const {return value_;} + value_type as_number() const {return value_;} const char* as_short_string() const; const char* as_long_string() const; #ifndef BOOST_NO_STD_WSTRING diff --git a/boost/date_time/gregorian/greg_year.hpp b/boost/date_time/gregorian/greg_year.hpp index ebcb49e206..3245518474 100644 --- a/boost/date_time/gregorian/greg_year.hpp +++ b/boost/date_time/gregorian/greg_year.hpp @@ -30,17 +30,17 @@ namespace gregorian { //! Generated representation for gregorian year typedef CV::constrained_value<greg_year_policies> greg_year_rep; - //! Represent a day of the month (range 1900 - 10000) + //! Represent a year (range 1400 - 10000) /*! This small class allows for simple conversion an integer value into a year for the gregorian calendar. This currently only allows a - range of 1900 to 10000. Both ends of the range are a bit arbitrary + range of 1400 to 10000. Both ends of the range are a bit arbitrary at the moment, but they are the limits of current testing of the library. As such they may be increased in the future. */ class BOOST_SYMBOL_VISIBLE greg_year : public greg_year_rep { public: - greg_year(unsigned short year) : greg_year_rep(year) {} - operator unsigned short() const {return value_;} + greg_year(value_type year) : greg_year_rep(year) {} + operator value_type() const {return value_;} }; |