From 6c9695d16c157e9119dcf897266e8643e6565213 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Thu, 17 Aug 2023 23:36:53 +0200 Subject: enable misc-*,bugprone-* lints --- timer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'timer.h') 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; }; -- cgit v1.2.3