Boost C++ Libraries: Ticket #4057: Patch to allow posix_time::ptime to have boost::gregorian::days overloaded operators https://svn.boost.org/trac10/ticket/4057 <p> Within boost/date_time/posix_time/date_duration_operators.hpp, there are overloaded operators for months and years, but not days. I found out this was missing while trying to use ptime for some things. I wanted to contribute a patch. </p> <p> The patch will allow operators +, -, +=, -= for gregorian days. </p> <p> I am using gentoo's dev-libs/boost-1.42 at this time. My apologies if I'm out of date. </p> <p> Please apply my patch directly to the file. Again, my apologies if I'm not complying with some format. I don't often contribute patches to projects. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4057 Trac 1.4.3 adam.preble@… Fri, 02 Apr 2010 03:53:57 GMT attachment set https://svn.boost.org/trac10/ticket/4057 https://svn.boost.org/trac10/ticket/4057 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">date_duration_operators_acpreble_20100401.patch</span> </li> </ul> <p> Apply to posix_time/date_duration_operators.hpp </p> Ticket viboes Thu, 02 Dec 2010 08:44:08 GMT type changed https://svn.boost.org/trac10/ticket/4057#comment:1 https://svn.boost.org/trac10/ticket/4057#comment:1 <ul> <li><strong>type</strong> <span class="trac-field-old">Patches</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> You should provide some tests and documentation to complete the patch for the feature request. Otherwise we risk to add an untested and undocumented feature added to date_time. </p> Ticket