summaryrefslogtreecommitdiff
path: root/src/Util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Util.h')
-rw-r--r--src/Util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Util.h b/src/Util.h
index 03b352e1..ad45c403 100644
--- a/src/Util.h
+++ b/src/Util.h
@@ -29,4 +29,11 @@
# define ASSERT(x)
#endif // DEBUG
+struct PointerAssassin {
+ template<typename T>
+ inline void operator()(const T ptr) const {
+ delete ptr;
+ }
+};
+
#endif // __Util_hh