Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74489 - trunk/boost/chrono/stopwatches/reporters
From: vicente.botet_at_[hidden]
Date: 2011-09-21 13:02:33


Author: viboes
Date: 2011-09-21 13:02:31 EDT (Wed, 21 Sep 2011)
New Revision: 74489
URL: http://svn.boost.org/trac/boost/changeset/74489

Log:
Chrono: cleanup stopwatch_reporter.hpp
Text files modified:
   trunk/boost/chrono/stopwatches/reporters/stopwatch_reporter.hpp | 10 +++++++---
   1 files changed, 7 insertions(+), 3 deletions(-)

Modified: trunk/boost/chrono/stopwatches/reporters/stopwatch_reporter.hpp
==============================================================================
--- trunk/boost/chrono/stopwatches/reporters/stopwatch_reporter.hpp (original)
+++ trunk/boost/chrono/stopwatches/reporters/stopwatch_reporter.hpp 2011-09-21 13:02:31 EDT (Wed, 21 Sep 2011)
@@ -62,17 +62,21 @@
 
       ~basic_stopwatch_reporter() BOOST_CHRONO_NOEXCEPT
       {
- system::error_code ec;
         if (!reported())
         {
- this->report(ec);
+ this->report();
         }
       }
 
- inline void report(system::error_code & ec= BOOST_CHRONO_THROWS)
+ inline void report() BOOST_CHRONO_NOEXCEPT
       {
+ formatter_(*this);
         reported_ = true;
+ }
+ inline void report(system::error_code & ec)
+ {
         formatter_(*this, ec);
+ reported_ = true;
       }
       bool reported() const
       {


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