use placement new
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
* 505 665 1831
|
||||
*/
|
||||
|
||||
#include <stdexcept>
|
||||
|
||||
#define epicsAssertAuthor "Jeff Hill johill@lanl.gov"
|
||||
|
||||
#include "iocinf.h"
|
||||
@@ -34,9 +36,6 @@
|
||||
#include "caerr.h" // for ECA_DBLCHNL
|
||||
#undef epicsExportSharedSymbols
|
||||
|
||||
epicsSingleton < tsFreeList < class msgForMultiplyDefinedPV, 16 > >
|
||||
msgForMultiplyDefinedPV::pFreeList;
|
||||
|
||||
msgForMultiplyDefinedPV::msgForMultiplyDefinedPV (
|
||||
callbackMutex & mutexIn, cac & cacRefIn,
|
||||
const char * pChannelName, const char * pAcc, const osiSockAddr &rej ) :
|
||||
@@ -60,3 +59,10 @@ void msgForMultiplyDefinedPV::ioCompletionNotify ( const char * pHostNameRej )
|
||||
}
|
||||
delete this;
|
||||
}
|
||||
|
||||
void msgForMultiplyDefinedPV::operator delete ( void *pCadaver )
|
||||
{
|
||||
throw std::logic_error
|
||||
( "compiler is confused about placement delete" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user