dont hide global new with placement new/delete
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user