Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75701 - in trunk/boost/chrono: io stopwatches/formatters
From: vicente.botet_at_[hidden]
Date: 2011-11-27 19:53:11


Author: viboes
Date: 2011-11-27 19:53:10 EST (Sun, 27 Nov 2011)
New Revision: 75701
URL: http://svn.boost.org/trac/boost/changeset/75701

Log:
Chrono: throx exception instead of returning empty string
Text files modified:
   trunk/boost/chrono/io/duration_units.hpp | 2 +-
   trunk/boost/chrono/stopwatches/formatters/base_formatter.hpp | 1 +
   2 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/chrono/io/duration_units.hpp
==============================================================================
--- trunk/boost/chrono/io/duration_units.hpp (original)
+++ trunk/boost/chrono/io/duration_units.hpp 2011-11-27 19:53:10 EST (Sun, 27 Nov 2011)
@@ -474,7 +474,7 @@
              ;
            }
         }
- return "";
+ throw "exception";
       }
 
     protected:

Modified: trunk/boost/chrono/stopwatches/formatters/base_formatter.hpp
==============================================================================
--- trunk/boost/chrono/stopwatches/formatters/base_formatter.hpp (original)
+++ trunk/boost/chrono/stopwatches/formatters/base_formatter.hpp 2011-11-27 19:53:10 EST (Sun, 27 Nov 2011)
@@ -7,6 +7,7 @@
 #ifndef BOOST_CHRONO_STOPWATCHES_FORMATTERS_BASE_FORMATTER_HPP
 #define BOOST_CHRONO_STOPWATCHES_FORMATTERS_BASE_FORMATTER_HPP
 
+#include <boost/chrono/io/duration_style.hpp>
 #include <boost/chrono/duration.hpp>
 #include <boost/chrono/chrono_io.hpp>
 #include <boost/cstdint.hpp>


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