added template class for calling free() on arbitrary pointer

git-svn-id: https://zeitsenke.de/svn/SyncEvolution/trunk@572 15ad00c4-1369-45f4-8270-35d70d36bdcd
This commit is contained in:
Patrick Ohly 2008-04-07 17:50:16 +00:00
parent faf2b40687
commit a66b80036b
1 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,11 @@ using namespace std;
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
template<class T> class EvolutionUnrefFree {
public:
static void unref(T *pointer) { free(pointer); }
};
class EvolutionUnref {
public:
/**