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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user