Chris@16: #ifndef YearMonthDayBase_HPP__ Chris@16: #define YearMonthDayBase_HPP__ Chris@16: Chris@16: /* Copyright (c) 2002,2003 CrystalClear Software, Inc. Chris@16: * Use, modification and distribution is subject to the Chris@16: * Boost Software License, Version 1.0. (See accompanying Chris@16: * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) Chris@16: * Author: Jeff Garland Chris@101: * $Date$ Chris@16: */ Chris@16: Chris@16: namespace boost { Chris@16: namespace date_time { Chris@16: Chris@16: //! Allow rapid creation of ymd triples of different types Chris@16: template Chris@16: struct year_month_day_base { Chris@16: year_month_day_base(YearType year, Chris@16: MonthType month, Chris@16: DayType day); Chris@16: YearType year; Chris@16: MonthType month; Chris@16: DayType day; Chris@16: typedef YearType year_type; Chris@16: typedef MonthType month_type; Chris@16: typedef DayType day_type; Chris@16: }; Chris@16: Chris@16: Chris@16: //! A basic constructor Chris@16: template Chris@16: inline Chris@16: year_month_day_base::year_month_day_base(YearType y, Chris@16: MonthType m, Chris@16: DayType d) : Chris@16: year(y), Chris@16: month(m), Chris@16: day(d) Chris@16: {} Chris@16: Chris@16: } }//namespace date_time Chris@16: Chris@16: Chris@16: #endif Chris@16: