1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0022815: Missing delete operator for placement new

This commit is contained in:
dbv
2012-03-06 12:32:06 +04:00
committed by bugmaster
parent 59f45b7cef
commit 1c35b92f5f
115 changed files with 280 additions and 868 deletions

View File

@@ -77,23 +77,7 @@ public:
Standard_Boolean IsValidInTrans(Standard_Integer Trans);
// Memory management
void* operator new(size_t aSize) {
return Standard::Allocate(aSize);
}
/* attempt to eliminate compiler warning
void* operator new(size_t, void* aNode) {
return aNode;
}
void operator delete(void* aNode) {
Standard::Free(aNode);
}
*/
void operator delete(void* aNode, size_t aSize) {
Standard::Free(aNode);
}
DEFINE_STANDARD_ALLOC
TNaming_PtrRefShape myOld;
TNaming_PtrRefShape myNew;