|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74622 - trunk/boost/chrono/stopwatches/reporters
From: vicente.botet_at_[hidden]
Date: 2011-10-01 12:45:26
Author: viboes
Date: 2011-10-01 12:45:25 EDT (Sat, 01 Oct 2011)
New Revision: 74622
URL: http://svn.boost.org/trac/boost/changeset/74622
Log:
Chrono: Added format function to get the formatter of a reporter
Text files modified:
trunk/boost/chrono/stopwatches/reporters/stopwatch_reporter.hpp | 6 ++++++
1 files changed, 6 insertions(+), 0 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-10-01 12:45:25 EDT (Sat, 01 Oct 2011)
@@ -79,11 +79,17 @@
formatter_(*this, ec);
reported_ = true;
}
+
bool reported() const
{
return reported_;
}
+ formatter_type& format()
+ {
+ return formatter_;
+ }
+
protected:
formatter_type formatter_;
bool reported_;
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