[Boost-bugs] [Boost C++ Libraries] #4057: Patch to allow posix_time::ptime to have boost::gregorian::days overloaded operators

Subject: [Boost-bugs] [Boost C++ Libraries] #4057: Patch to allow posix_time::ptime to have boost::gregorian::days overloaded operators
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-02 03:53:10


#4057: Patch to allow posix_time::ptime to have boost::gregorian::days overloaded
operators
-----------------------------------+----------------------------------------
 Reporter: adam.preble@… | Owner: az_sw_dude
     Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: date_time
  Version: Boost 1.42.0 | Severity: Cosmetic
 Keywords: ptime date_time days |
-----------------------------------+----------------------------------------
 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.

 The patch will allow operators +, -, +=, -= for gregorian days.

 I am using gentoo's dev-libs/boost-1.42 at this time. My apologies if I'm
 out of date.

 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.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4057>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC