From 8ef01d3fb6c14410fc5a3cf5762d3bd9b9bd4215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Fri, 1 Dec 2023 07:54:20 +0100 Subject: [PATCH] Make timer class non copyable --- src/OpenMesh/Tools/Utils/Timer.hh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenMesh/Tools/Utils/Timer.hh b/src/OpenMesh/Tools/Utils/Timer.hh index f96870b5..b8b3b665 100644 --- a/src/OpenMesh/Tools/Utils/Timer.hh +++ b/src/OpenMesh/Tools/Utils/Timer.hh @@ -98,8 +98,12 @@ public: Timer(void); + /// Make the timer non copyable Timer(const Timer& _other) = delete; + /// Make the timer non copyable + Timer& operator=( const Timer& ) = delete; + ~Timer(void); /// Returns true if self is in a valid state! @@ -144,6 +148,8 @@ public: */ static std::string as_string(double seconds, Format format = Automatic); + + public: //@{