From e76f4c2ae94be411cc58ac9a18346d2a97ee51e1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Sep 2017 10:35:51 +0200 Subject: [PATCH] util/DeleteDisposer: convert struct to class --- src/util/DeleteDisposer.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/DeleteDisposer.hxx b/src/util/DeleteDisposer.hxx index 15393a20a..16b958359 100644 --- a/src/util/DeleteDisposer.hxx +++ b/src/util/DeleteDisposer.hxx @@ -34,7 +34,8 @@ * A disposer for boost::intrusive that invokes the "delete" operator * on the given pointer. */ -struct DeleteDisposer { +class DeleteDisposer { +public: template void operator()(T *t) { delete t;