Ticket #3308: greg_calender_32bit.patch

File greg_calender_32bit.patch, 1.2 KB (added by Andre Vehreschild <andre.vehreschild@…>, 13 years ago)

Proposed patch using boost::integer.hpp

Line 
1*** boost-1_39_orig/boost/date_time/gregorian/greg_calendar.hpp 2008-02-27 21:00:24.000000000 +0100
2--- boost-1_39/boost/date_time/gregorian/greg_calendar.hpp 2009-08-01 15:13:05.000000000 +0200
3***************
4*** 14,25 ****
5 #include "boost/date_time/gregorian_calendar.hpp"
6 #include "boost/date_time/gregorian/greg_ymd.hpp"
7 #include "boost/date_time/int_adapter.hpp"
8
9 namespace boost {
10 namespace gregorian {
11
12 //!An internal date representation that includes infinities, not a date
13! typedef date_time::int_adapter<unsigned long> fancy_date_rep;
14
15 //! Gregorian calendar for this implementation, hard work in the base
16 class gregorian_calendar :
17--- 14,26 ----
18 #include "boost/date_time/gregorian_calendar.hpp"
19 #include "boost/date_time/gregorian/greg_ymd.hpp"
20 #include "boost/date_time/int_adapter.hpp"
21+ #include "boost/integer.hpp"
22
23 namespace boost {
24 namespace gregorian {
25
26 //!An internal date representation that includes infinities, not a date
27! typedef date_time::int_adapter<uint_t<32>::least> fancy_date_rep;
28
29 //! Gregorian calendar for this implementation, hard work in the base
30 class gregorian_calendar :