Boost logo

Boost-Commit :

From: hinnant_at_[hidden]
Date: 2007-12-05 10:01:49


Author: hinnant
Date: 2007-12-05 10:01:49 EST (Wed, 05 Dec 2007)
New Revision: 41746
URL: http://svn.boost.org/trac/boost/changeset/41746

Log:
corrected bug in one of the __duration_subtract overloads
Text files modified:
   sandbox/committee/LWG/ref_impl/hdate_time | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/committee/LWG/ref_impl/hdate_time
==============================================================================
--- sandbox/committee/LWG/ref_impl/hdate_time (original)
+++ sandbox/committee/LWG/ref_impl/hdate_time 2007-12-05 10:01:49 EST (Wed, 05 Dec 2007)
@@ -1261,7 +1261,7 @@
 typename __promote_duration<LhsDuration, RhsDuration>::type
 __duration_subtract(const LhsDuration& lhs, const RhsDuration& rhs, false_type)
 {
- RhsDuration r(lhs);
+ RhsDuration r = __make<RhsDuration>::from(lhs);
     r -= rhs;
     return r;
 }


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