Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r65140 - sandbox/chrono/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2010-08-30 18:09:25


Author: viboes
Date: 2010-08-30 18:09:24 EDT (Mon, 30 Aug 2010)
New Revision: 65140
URL: http://svn.boost.org/trac/boost/changeset/65140

Log:
Add explicit
Text files modified:
   sandbox/chrono/boost/chrono/lightweight_stopwatch.hpp | 16 ++--------------
   sandbox/chrono/boost/chrono/stopwatch.hpp | 3 ---
   2 files changed, 2 insertions(+), 17 deletions(-)

Modified: sandbox/chrono/boost/chrono/lightweight_stopwatch.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/lightweight_stopwatch.hpp (original)
+++ sandbox/chrono/boost/chrono/lightweight_stopwatch.hpp 2010-08-30 18:09:24 EDT (Mon, 30 Aug 2010)
@@ -87,7 +87,7 @@
         typedef Accumulator accumulator;
         static const bool is_accumulator_set = traits::is_accumulator_set;
 
- lightweight_stopwatch( accumulator& acc, system::error_code & ec = system::throws )
+ explicit lightweight_stopwatch( accumulator& acc, system::error_code & ec = system::throws )
         : running_(false), suspended_(false),
           start_(duration::zero()), level_(0), partial_(duration::zero()), suspend_level_(0)
           , accumulated_(&acc), construction_(clock::now( ))
@@ -238,19 +238,7 @@
         typedef stopwatch_stopper<lightweight_stopwatch<Clock,Features,Weight> > scoped_stop;
         typedef stopwatch_suspender<lightweight_stopwatch<Clock,Features,Weight> > scoped_suspend;
         typedef stopwatch_resumer<lightweight_stopwatch<Clock,Features,Weight> > scoped_resume;
- private:
- //~ lightweight_stopwatch operator=( lightweight_stopwatch const& rhs );
- //~ {
- //~ running_=rhs.running_;
- //~ suspended_=rhs.suspended_;
- //~ start_=rhs.start_;
- //~ level_=rhs.level_;
- //~ partial_=rhs.partial_;
- //~ suspend_level_=rhs.suspend_level_;
- //~ accumulated_=rhs.accumulated_;
- //~ construction_=rhs.construction_;
- //~ }
-
+ private:
         bool running_;
         bool suspended_;
         time_point start_;

Modified: sandbox/chrono/boost/chrono/stopwatch.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/stopwatch.hpp (original)
+++ sandbox/chrono/boost/chrono/stopwatch.hpp 2010-08-30 18:09:24 EDT (Mon, 30 Aug 2010)
@@ -57,9 +57,6 @@
         : pbase_type(), lightweight_stopwatch<Clock>(pbase_type::member, t)
         { }
         
- //~ private:
- //~ stopwatch operator=( stopwatch const& rhs );
-
     };
 
 //--------------------------------------------------------------------------------------//


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