X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fassassin.hh;fp=otk%2Fassassin.hh;h=89e98153c20f92b45054edc28c5331b237945f53;hb=37e56007680a6664967e0e71ac52981654def6a6;hp=0000000000000000000000000000000000000000;hpb=fa8cefef63feb1d559c40db3cf9407e5bd1ac4df;p=chaz%2Fopenbox diff --git a/otk/assassin.hh b/otk/assassin.hh new file mode 100644 index 00000000..89e98153 --- /dev/null +++ b/otk/assassin.hh @@ -0,0 +1,15 @@ +#ifndef __assassin_hh +#define __assassin_hh + +namespace otk { + +struct PointerAssassin { + template + inline void operator()(const T ptr) const { + delete ptr; + } +}; + +} + +#endif // __assassin_hh