dont allow use of ordinary delete

This commit is contained in:
Jeff Hill
2002-10-23 22:55:52 +00:00
parent 39f180ffd1
commit 9d07afdbfd
2 changed files with 8 additions and 16 deletions

View File

@@ -92,14 +92,10 @@ void syncGroupReadNotify::show ( unsigned level ) const
}
}
void * syncGroupReadNotify::operator new ( size_t sizeIn )
{
return ::operator new ( sizeIn );
}
void syncGroupReadNotify::operator delete ( void * p )
{
::operator delete ( p );
throw std::logic_error
( "compiler is confused about placement delete" );
}
void * syncGroupReadNotify::operator new ( size_t size,
@@ -108,10 +104,10 @@ void * syncGroupReadNotify::operator new ( size_t size,
return freeList.allocate ( size );
}
#if defined ( CASG_PLACEMENT_DELETE )
#if defined ( CXX_PLACEMENT_DELETE )
void syncGroupReadNotify::operator delete ( void *pCadaver,
tsFreeList < class syncGroupReadNotify, 128, epicsMutexNOOP > &freeList )
{
freeList.release ( pCadaver, sizeof ( syncGroupReadNotify ) );
freeList.release ( pCadaver );
}
#endif