Parcourir la source

[3922] Made Stopwatch not copyable

Francis Dupont il y a 9 ans
Parent
commit
651f711cc3
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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.