use placement new

This commit is contained in:
Jeff Hill
2002-10-23 23:55:36 +00:00
parent 92dcf72a89
commit d9e6116d00
30 changed files with 341 additions and 232 deletions

View File

@@ -25,6 +25,8 @@
* 505 665 1831
*/
#include <stdexcept>
#include <limits.h>
#include <string.h>
@@ -32,7 +34,6 @@
#include "epicsEvent.h"
#include "epicsTime.h"
#include "tsFreeList.h"
#include "epicsSingleton.h"
#include "errMdef.h"
#include "caerr.h" // this needs to be eliminated
@@ -43,9 +44,6 @@
#include "dbChannelIO.h"
#include "dbPutNotifyBlocker.h"
epicsSingleton < tsFreeList < dbPutNotifyBlocker, 1024 > >
dbPutNotifyBlocker::pFreeList;
dbPutNotifyBlocker::dbPutNotifyBlocker () :
pNotify ( 0 ), maxValueSize ( sizeof ( this->dbrScalarValue ) )
{
@@ -189,3 +187,8 @@ dbSubscriptionIO * dbPutNotifyBlocker::isSubscription ()
return 0;
}
void dbPutNotifyBlocker::operator delete ( void * pCadaver )
{
throw std::logic_error
( "compiler is confused about placement delete" );
}