projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
testing: replication
[awesomized/libmemcached]
/
test
/
lib
/
common.hpp
diff --git
a/test/lib/common.hpp
b/test/lib/common.hpp
index ecfa07d413535b8aab9ed83650729320d7d3670b..517b426342e7ea596af1f6098333df51557ed1e7 100644
(file)
--- a/
test/lib/common.hpp
+++ b/
test/lib/common.hpp
@@
-105,7
+105,7
@@
public:
}
};
-template<class T
, void (*F)(void*) = free
>
+template<class T>
class Malloced {
T *ptr;
public:
@@
-115,7
+115,7
@@
public:
{}
~Malloced() {
if(ptr)
-
F
(ptr);
+
free
(ptr);
}
auto operator *() {
return ptr;