diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-17 23:36:53 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-08-17 23:36:53 +0200 |
commit | 6c9695d16c157e9119dcf897266e8643e6565213 (patch) | |
tree | 6f96470fb1a56234f18c1561f3b96eb301fffe1c /timer.h | |
parent | 851d4fb9db087eeb183f1c1cb5d96829a32e690b (diff) | |
download | cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.tar.gz cpp-utils-6c9695d16c157e9119dcf897266e8643e6565213.zip |
enable misc-*,bugprone-* lints
Diffstat (limited to 'timer.h')
-rw-r--r-- | timer.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; }; |