diff options
Diffstat (limited to 'src/Util.h')
| -rw-r--r-- | src/Util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |
