Disallow accidental copy construction

This commit is contained in:
Eelco Dolstra
2017-08-21 12:18:42 +02:00
parent 37db080644
commit 9400cb36b7
+2
View File
@@ -81,6 +81,8 @@ struct Activity
Activity(Logger & logger, ActivityType type, const std::string & s = "");
Activity(const Activity & act) = delete;
~Activity()
{ logger.stopActivity(id); }