]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3922] Made Stopwatch not copyable
authorFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 17:45:57 +0000 (19:45 +0200)
committerFrancis Dupont <fdupont@isc.org>
Wed, 24 Jun 2015 17:45:57 +0000 (19:45 +0200)
src/lib/util/stopwatch.h

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