all repos — openbox @ 9b23dff16cd85461da6f99aa95a79422cffd72f8

openbox fork - make it a bit more like ryudo

otk/assassin.hh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef __assassin_hh
#define __assassin_hh

namespace otk {

struct PointerAssassin {
  template<typename T>
  inline void operator()(const T ptr) const {
    delete ptr;
  }
};

}

#endif // __assassin_hh