X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FUtil.h;h=ad45c4034b78c4a11c12e276842b6fe36d6fcaf7;hb=d58f7b569e6c39fbeb96d55a139cd3a07ec3b5a7;hp=03b352e1040ca53d4236ed1cc516fb211643071a;hpb=3dcebcf56c6dd3a3707291e757af485bb55df7a6;p=chaz%2Fopenbox 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 + inline void operator()(const T ptr) const { + delete ptr; + } +}; + #endif // __Util_hh