1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Disallow accidental copy construction

This commit is contained in:
Eelco Dolstra 2017-08-21 12:00:41 +02:00
parent 37db080644
commit 9400cb36b7
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -81,6 +81,8 @@ struct Activity
Activity(Logger & logger, ActivityType type, const std::string & s = ""); Activity(Logger & logger, ActivityType type, const std::string & s = "");
Activity(const Activity & act) = delete;
~Activity() ~Activity()
{ logger.stopActivity(id); } { logger.stopActivity(id); }