dont allow ordinary delete
This commit is contained in:
1 parent
6026533aeb
commit
4cd67a4e27
2 files changed
+11
No files matched your search
@@ -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