Disallow accidental copy construction
This commit is contained in:
parent
37db080644
commit
9400cb36b7
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,8 @@ struct Activity
|
|||
|
||||
Activity(Logger & logger, ActivityType type, const std::string & s = "");
|
||||
|
||||
Activity(const Activity & act) = delete;
|
||||
|
||||
~Activity()
|
||||
{ logger.stopActivity(id); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue