aboutsummaryrefslogtreecommitdiff
path: root/timer.h
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2023-08-17 23:36:53 +0200
commit6c9695d16c157e9119dcf897266e8643e6565213 (patch)
tree6f96470fb1a56234f18c1561f3b96eb301fffe1c /timer.h
parent851d4fb9db087eeb183f1c1cb5d96829a32e690b (diff)
downloadcpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.tar.gz
cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.zip
enable misc-*,bugprone-* lints
Diffstat (limited to 'timer.h')
-rw-r--r--timer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/timer.h b/timer.h
index 933c02c..ce0e629 100644
--- a/timer.h
+++ b/timer.h
@@ -45,6 +45,11 @@ struct scoped_timer {
m_timer.stop();
}
+ scoped_timer(const scoped_timer&) = delete;
+ scoped_timer& operator=(const scoped_timer&) = delete;
+ scoped_timer(scoped_timer&&) = delete;
+ scoped_timer& operator=(scoped_timer&&) = delete;
+
private:
timer& m_timer;
};