Boost C++ Libraries: Ticket #3308: gregorian does not use 32 bit int on 64 bit system https://svn.boost.org/trac10/ticket/3308 <p> The gregorian date datatype is supposed to use a 32-bit integer for storing the date information. At least this is said so in the documentation. Unfortunately the implementation uses "unsigned long" which results in a 64-bit value on 64-bit systems. </p> <p> I am able to propose attached patch. Please comment and correct! </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3308 Trac 1.4.3 Andre Vehreschild <andre.vehreschild@…> Sat, 01 Aug 2009 13:33:30 GMT attachment set https://svn.boost.org/trac10/ticket/3308 https://svn.boost.org/trac10/ticket/3308 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">greg_calender_32bit.patch</span> </li> </ul> <p> Proposed patch using boost::integer.hpp </p> Ticket Andrey Semashev Mon, 21 Sep 2009 15:27:54 GMT <link>https://svn.boost.org/trac10/ticket/3308#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3308#comment:1</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56338" title="Refs #3308. Changed the internal type of the gregorian dates to 32 bit ...">[56338]</a>) Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3308" title="#3308: Bugs: gregorian does not use 32 bit int on 64 bit system (closed: fixed)">#3308</a>. Changed the internal type of the gregorian dates to 32 bit integer. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Thu, 24 Sep 2009 20:21:40 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3308#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3308#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56372" title="Refs #3308. Fixed calculation of difference between dates on 64 bit ...">[56372]</a>) Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3308" title="#3308: Bugs: gregorian does not use 32 bit int on 64 bit system (closed: fixed)">#3308</a>. Fixed calculation of difference between dates on 64 bit platforms. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Andrey Semashev</dc:creator> <pubDate>Mon, 28 Sep 2009 18:10:04 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3308#comment:3 https://svn.boost.org/trac10/ticket/3308#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/56456" title="Fixes #3308. Also added some missing includes.">[56456]</a>) Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3308" title="#3308: Bugs: gregorian does not use 32 bit int on 64 bit system (closed: fixed)">#3308</a>. Also added some missing includes. </p> Ticket