addressed user complaint and rolled back change which called desstructor

This commit is contained in:
Robert Ramey
2017-11-07 15:08:12 -08:00
parent 8d0b0db5de
commit 0ba417dd1c
3 changed files with 25 additions and 4 deletions

View File

@@ -233,7 +233,7 @@ struct heap_allocation {
// that the class might have class specific new with NO
// class specific delete at all. Patches (compatible with
// C++03) welcome!
delete t;
(operator delete)(t);
}
};
struct doesnt_have_new_operator {
@@ -242,7 +242,7 @@ struct heap_allocation {
}
static void invoke_delete(T * t) {
// Note: I'm reliance upon automatic conversion from T * to void * here
delete t;
(operator delete)(t);
}
};
static T * invoke_new() {