Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r70076 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-03-17 16:11:13


Author: viboes
Date: 2011-03-17 16:11:10 EDT (Thu, 17 Mar 2011)
New Revision: 70076
URL: http://svn.boost.org/trac/boost/changeset/70076

Log:
Chrono: #5322, #5323, time_point operators ++,--
Text files modified:
   trunk/boost/chrono/time_point.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/chrono/time_point.hpp
==============================================================================
--- trunk/boost/chrono/time_point.hpp (original)
+++ trunk/boost/chrono/time_point.hpp 2011-03-17 16:11:10 EDT (Thu, 17 Mar 2011)
@@ -200,8 +200,8 @@
         time_point& operator--() {--d_; return *this;}
         time_point operator--(int) {return time_point(d_--);}
 
- time_point& operator+=(const rep& r) {d_ += r; return *this;}
- time_point& operator-=(const rep& r) {d_ -= r; return *this;}
+ time_point& operator+=(const rep& r) {d_ += duration(r); return *this;}
+ time_point& operator-=(const rep& r) {d_ -= duration(r); return *this;}
 
 #endif
       


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk