From 4cd67a4e279b21854782cedfe02478ca6fa8f178 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 23 Oct 2002 23:23:56 +0000 Subject: [PATCH] dont allow ordinary delete --- src/ca/netReadNotifyIO.cpp | 6 ++++++ src/ca/netSubscription.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/src/ca/netReadNotifyIO.cpp b/src/ca/netReadNotifyIO.cpp index 1bdcd9fe4..edf9e74c9 100644 --- a/src/ca/netReadNotifyIO.cpp +++ b/src/ca/netReadNotifyIO.cpp @@ -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" ); +} + diff --git a/src/ca/netSubscription.cpp b/src/ca/netSubscription.cpp index c9dbc27a4..1e78864a6 100644 --- a/src/ca/netSubscription.cpp +++ b/src/ca/netSubscription.cpp @@ -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" ); +}