dont hide global new with placement new/delete

This commit is contained in:
Jeff Hill
2002-04-25 22:19:05 +00:00
parent aab783d387
commit 35deb5810c
7 changed files with 86 additions and 147 deletions

View File

@@ -99,6 +99,16 @@ void syncGroupWriteNotify::show ( unsigned level ) const
}
}
void * syncGroupWriteNotify::operator new ( size_t sizeIn )
{
return ::operator new ( sizeIn );
}
void syncGroupWriteNotify::operator delete ( void * p )
{
::operator delete ( p );
}
void * syncGroupWriteNotify::operator new ( size_t size,
tsFreeList < class syncGroupWriteNotify, 128, epicsMutexNOOP > & freeList )
{
@@ -113,17 +123,3 @@ void syncGroupWriteNotify::operator delete ( void *pCadaver,
}
#endif
# if defined (_MSC_VER) && _MSC_VER <= 1300
void syncGroupWriteNotify::operator delete ( void * ) // avoid visual c++ 7 bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif
# if __GNUC__==2 && __GNUC_MINOR_<=96
void syncGroupWriteNotify::operator delete ( void *, size_t ) // avoid gnu g++ bug
{
throw std::logic_error ( "bogus operator delete called?" );
}
# endif