Browse Source

[master] Merged trac3922 (Stopwatch not copyable)

Francis Dupont 10 years ago
parent
commit
33ab9259aa
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/util/stopwatch.h

+ 2 - 1
src/lib/util/stopwatch.h

@@ -15,6 +15,7 @@
 #ifndef STOPWATCH_H
 #ifndef STOPWATCH_H
 #define STOPWATCH_H
 #define STOPWATCH_H
 
 
+#include <boost/noncopyable.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 
 
 namespace isc {
 namespace isc {
@@ -39,7 +40,7 @@ class StopwatchImpl;
 /// @c start and @c stop consecutively. The total measured time will be
 /// @c start and @c stop consecutively. The total measured time will be
 /// a sum of durations between the invocations of respective starts and
 /// a sum of durations between the invocations of respective starts and
 /// stops.
 /// stops.
-class Stopwatch {
+class Stopwatch : boost::noncopyable {
 public:
 public:
 
 
     /// @brief Constructor.
     /// @brief Constructor.