dont allow ordinary delete
This commit is contained in:
@@ -80,5 +80,11 @@ nciu & netReadNotifyIO::channel () const
|
||||
return this->chan;
|
||||
}
|
||||
|
||||
void netReadNotifyIO::operator delete ( void * p )
|
||||
{
|
||||
throw std::logic_error
|
||||
( "compiler is confused about placement delete" );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -93,6 +93,11 @@ nciu & netSubscription::channel () const
|
||||
return this->chan;
|
||||
}
|
||||
|
||||
void netSubscription::operator delete ( void * p )
|
||||
{
|
||||
throw std::logic_error
|
||||
( "compiler is confused about placement delete" );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user