util/DeleteDisposer: new utility class

This commit is contained in:
Max Kellermann
2015-10-19 15:57:00 +02:00
parent 62bfb1a273
commit 8d23706354
7 changed files with 55 additions and 24 deletions

View File

@@ -53,12 +53,6 @@ struct Directory {
typedef boost::intrusive::link_mode<link_mode> LinkMode;
typedef boost::intrusive::list_member_hook<LinkMode> Hook;
struct Disposer {
void operator()(Directory *directory) const {
delete directory;
}
};
/**
* Pointers to the siblings of this directory within the
* parent directory. It is unused (undefined) in the root