about summary refs log tree commit diff
path: root/src/libutil/logging.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-21T10·00+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-21T10·18+0200
commit9400cb36b7b7764e742f94fbe7f4fd8082fa1ae3 (patch)
tree4a963cd1ada3a92db5b00882b4558dd9a0b597ff /src/libutil/logging.hh
parent37db080644c6a1fd6e59afa48a3dc30cb9bf2fce (diff)
Disallow accidental copy construction
Diffstat (limited to 'src/libutil/logging.hh')
-rw-r--r--src/libutil/logging.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index 1e0c735676b6..08a11617591e 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -81,6 +81,8 @@ struct Activity
 
     Activity(Logger & logger, ActivityType type, const std::string & s = "");
 
+    Activity(const Activity & act) = delete;
+
     ~Activity()
     { logger.stopActivity(id); }