0022815: Missing delete operator for placement new
[occt.git] / src / NCollection / NCollection_IndexedMap.hxx
index 1a53813..79fd5c9 100755 (executable)
 #include <Standard_OutOfRange.hxx>
 #endif
 
-#ifdef WNT
-// Disable the warning "operator new unmatched by delete"
-#pragma warning (push)
-#pragma warning (disable:4291)
-#endif
-
 /**
  * Purpose:     An indexed map is used to  store  keys and to bind
  *              an index to them.  Each new key stored in  the map
@@ -115,11 +109,6 @@ template < class TheKeyType,
       return * (TheKeyType *) NULL; // This for compiler
     }
     
-    //! Operator new for allocating iterators
-    void* operator new(size_t theSize,
-                       const Handle(NCollection_BaseAllocator)& theAllocator) 
-    { return theAllocator->Allocate(theSize); }
-    
   private:
     NCollection_IndexedMap * myMap;   // Pointer to the map being iterated
     Standard_Integer         myIndex; // Current index
@@ -417,8 +406,4 @@ template < class TheKeyType,
 
 };
 
-#ifdef WNT
-#pragma warning (pop)
-#endif
-
 #endif