Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62110 - sandbox/chrono/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2010-05-20 10:19:24


Author: viboes
Date: 2010-05-20 10:19:24 EDT (Thu, 20 May 2010)
New Revision: 62110
URL: http://svn.boost.org/trac/boost/changeset/62110

Log:
Boost.Chrono 0.5:
* Remove unneeded lines
* Comment unused arguments

Text files modified:
   sandbox/chrono/boost/chrono/chrono.hpp | 22 ----------------------
   sandbox/chrono/boost/chrono/stopwatch_reporter.hpp | 22 +++++++++++-----------
   2 files changed, 11 insertions(+), 33 deletions(-)

Modified: sandbox/chrono/boost/chrono/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono/chrono.hpp 2010-05-20 10:19:24 EDT (Thu, 20 May 2010)
@@ -393,17 +393,10 @@
     {
         ToDuration operator()(const FromDuration& fd) const
         {
- #if BOOST_VARIADIC_COMMON_TYPE == 0
- typedef typename common_type<
- typename common_type<typename ToDuration::rep,
- typename FromDuration::rep>::type,
- intmax_t>::type C;
- #else
             typedef typename common_type<
                 typename ToDuration::rep,
                 typename FromDuration::rep,
                 intmax_t>::type C;
- #endif
             return ToDuration(static_cast<typename ToDuration::rep>(
                               static_cast<C>(fd.count()) / static_cast<C>(Period::den)));
         }
@@ -419,17 +412,10 @@
     {
         ToDuration operator()(const FromDuration& fd) const
         {
- #if BOOST_VARIADIC_COMMON_TYPE == 0
- typedef typename common_type<
- typename common_type<typename ToDuration::rep,
- typename FromDuration::rep>::type,
- intmax_t>::type C;
- #else
             typedef typename common_type<
               typename ToDuration::rep,
               typename FromDuration::rep,
               intmax_t>::type C;
- #endif
             return ToDuration(static_cast<typename ToDuration::rep>(
                               static_cast<C>(fd.count()) * static_cast<C>(Period::num)));
         }
@@ -446,18 +432,10 @@
     {
         ToDuration operator()(const FromDuration& fd) const
         {
- #if BOOST_VARIADIC_COMMON_TYPE == 0
- typedef typename common_type<
- typename common_type<
- typename ToDuration::rep,
- typename FromDuration::rep>::type,
- intmax_t>::type C;
- #else
             typedef typename common_type<
               typename ToDuration::rep,
               typename FromDuration::rep,
               intmax_t>::type C;
- #endif
             return ToDuration(static_cast<typename ToDuration::rep>(
                static_cast<C>(fd.count()) * static_cast<C>(Period::num)
                  / static_cast<C>(Period::den)));

Modified: sandbox/chrono/boost/chrono/stopwatch_reporter.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/stopwatch_reporter.hpp (original)
+++ sandbox/chrono/boost/chrono/stopwatch_reporter.hpp 2010-05-20 10:19:24 EDT (Thu, 20 May 2010)
@@ -75,42 +75,42 @@
         typedef typename Formatter::char_type char_type;
         typedef typename Formatter::ostream_type ostream_type;
 
- explicit basic_stopwatch_reporter( system::error_code & ec = system::throws )
+ explicit basic_stopwatch_reporter( system::error_code & /*ec*/ = system::throws )
         : m_places(Formatter::default_places()), m_os(Formatter::default_os()), m_format(Formatter::default_format()), m_reported(false) { }
         explicit basic_stopwatch_reporter( ostream_type & os,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(Formatter::default_places()), m_os(os), m_format(Formatter::default_format()), m_reported(false) { }
 
         explicit basic_stopwatch_reporter( const string_type & format,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(Formatter::default_places()), m_os(Formatter::default_os()), m_format(format), m_reported(false) {}
 
         explicit basic_stopwatch_reporter( int places,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(Formatter::default_os()), m_format(Formatter::default_format()), m_reported(false) { }
 
         basic_stopwatch_reporter( ostream_type & os, const string_type & format,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(Formatter::default_places()), m_os(os), m_format(format), m_reported(false) { }
 
         basic_stopwatch_reporter( const string_type & format, int places,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(Formatter::default_os()), m_format(format), m_reported(false) { }
 
         basic_stopwatch_reporter( ostream_type & os, int places,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(os), m_format(Formatter::default_format()), m_reported(false) { }
 
         basic_stopwatch_reporter( int places, const string_type & format,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(Formatter::default_os()), m_format(format), m_reported(false) { }
 
         basic_stopwatch_reporter( ostream_type & os, const string_type & format, int places,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(os), m_format(format), m_reported(false) { }
 
         basic_stopwatch_reporter( ostream_type & os, int places, const string_type & format,
- system::error_code & ec = system::throws )
+ system::error_code & /*ec*/ = system::throws )
         : m_places(places), m_os(os), m_format(format), m_reported(false) { }
 
         ~basic_stopwatch_reporter() {// never throws
@@ -122,7 +122,7 @@
         }
 
 
- inline void report( system::error_code & ec = system::throws );
+ inline void report( system::error_code & /*ec*/ = system::throws );
         bool reported() const { return m_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