mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-01 00:21:51 +08:00
0022815: Missing delete operator for placement new
This commit is contained in:
@@ -15,11 +15,6 @@
|
||||
|
||||
#include <NCollection_BaseCollection.hxx>
|
||||
|
||||
#ifdef WNT
|
||||
// Disable the warning "operator new unmatched by delete"
|
||||
#pragma warning (disable:4291)
|
||||
#endif
|
||||
|
||||
// *********************************************** Template for Array2 class
|
||||
/**
|
||||
* Purpose: The class Array2 represents bi-dimensional arrays
|
||||
@@ -70,10 +65,6 @@ template <class TheItemType> class NCollection_Array2
|
||||
//! Variable value access
|
||||
virtual TheItemType& ChangeValue (void) const
|
||||
{ return myArray->myStart[myCurrent]; }
|
||||
//! Operator new for allocating iterators
|
||||
void* operator new(size_t theSize,
|
||||
const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
{ return theAllocator->Allocate(theSize); }
|
||||
private:
|
||||
Standard_Integer myCurrent; //!< Index of the current item
|
||||
Standard_Integer mySize; //!< Total amount of items
|
||||
@@ -316,8 +307,4 @@ template <class TheItemType> class NCollection_Array2
|
||||
|
||||
};
|
||||
|
||||
#ifdef WNT
|
||||
#pragma warning (default:4291)
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user