From 3d15b8513d61a6baaf658ff8c390a2427c866378 Mon Sep 17 00:00:00 2001 From: Volker Birk Date: Sat, 20 Oct 2018 19:47:07 +0200 Subject: [PATCH] delete as standard deleter for clear() --- pc_container.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc_container.hh b/pc_container.hh index a766b4a..7b00209 100644 --- a/pc_container.hh +++ b/pc_container.hh @@ -62,7 +62,7 @@ public: } // clear the container. Delete all *pdata via custom deleter functor. - void clear(std::function deleter) + void clear(std::function deleter = [](Pdata *e) { delete e; }) { for(auto q=begin(); q!=end(); ++q) {