Fix deprecation warning on DMD 2.079.0.

This commit is contained in:
Sönke Ludwig 2018-03-06 20:09:03 +01:00
parent 8242fd058e
commit 43ef41d4fa

View file

@ -428,7 +428,11 @@ final class PollEventDriverWatchers(Events : EventDriverEvents) : EventDriverWat
if (generate_changes)
addChange(FileChangeKind.removed, e.key, e.value.isDir);
}
delete e.value;
static if (__VERSION__ >= 2079) {
import core.memory : __delete;
__delete(e.value);
} else mixin("delete e.value;");
}
foreach (e; added)