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:
parent
faf2b40687
commit
a66b80036b
|
@ -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:
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue