|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65072 - sandbox/chrono/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2010-08-28 04:15:53
Author: viboes
Date: 2010-08-28 04:15:45 EDT (Sat, 28 Aug 2010)
New Revision: 65072
URL: http://svn.boost.org/trac/boost/changeset/65072
Log:
improve error code handling
Text files modified:
sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp (original)
+++ sandbox/chrono/libs/chrono/example/specific_stopwatch_accumulator_example.cpp 2010-08-28 04:15:45 EDT (Sat, 28 Aug 2010)
@@ -28,6 +28,7 @@
static void show_time( Stopwatch & stopwatch_, const char_type* format,
int places, ostream_type & os, boost::system::error_code & ec)
{
+ if (&ec != &system::throws) ec.clear();
typedef typename Stopwatch::accumulator accumulator_t;
typedef typename Stopwatch::duration duration_t;
accumulator_t& acc = stopwatch_.accumulated();
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