util/DeleteDisposer: convert struct to class
This commit is contained in:
parent
f46ac45d69
commit
e76f4c2ae9
@ -34,7 +34,8 @@
|
|||||||
* A disposer for boost::intrusive that invokes the "delete" operator
|
* A disposer for boost::intrusive that invokes the "delete" operator
|
||||||
* on the given pointer.
|
* on the given pointer.
|
||||||
*/
|
*/
|
||||||
struct DeleteDisposer {
|
class DeleteDisposer {
|
||||||
|
public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void operator()(T *t) {
|
void operator()(T *t) {
|
||||||
delete t;
|
delete t;
|
||||||
|
Loading…
Reference in New Issue
Block a user