1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

AutoDelete: Add default constructor with deletion disabled

This commit is contained in:
Shea Levy 2015-11-16 05:53:10 -05:00
parent 4390142315
commit 58d2fac91d
3 changed files with 11 additions and 1 deletions

View file

@ -199,9 +199,11 @@ class AutoDelete
bool del;
bool recursive;
public:
AutoDelete();
AutoDelete(const Path & p, bool recursive = true);
~AutoDelete();
void cancel();
void reset(const Path & p, bool recursive = true);
operator Path() const { return path; }
};