diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-27 06:18:57 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-06-27 06:18:57 +0000 |
commit | 8dbb49925bd31cf08602f81d9213060d899887b6 (patch) | |
tree | 4a393ced9993425ef98defd076567ec786db89c7 /ace/Svc_Handler.h | |
parent | 17c2cd29799255652ce8a976a3e0784fb36864e3 (diff) | |
download | ATCD-8dbb49925bd31cf08602f81d9213060d899887b6.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Svc_Handler.h')
-rw-r--r-- | ace/Svc_Handler.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ace/Svc_Handler.h b/ace/Svc_Handler.h index 7864ee37569..9eb192d50a3 100644 --- a/ace/Svc_Handler.h +++ b/ace/Svc_Handler.h @@ -99,9 +99,10 @@ public: virtual void destroy (void); // Call this instead of <delete> to free up dynamically allocated - // <Svc_Handler>. This method knows whether or not the object was - // allocated dynamically, and can act accordingly (i.e., deleting it - // if it was allocated dynamically, otherwise ignoring it). + // <Svc_Handlers> (otherwise you will get memory leaks). This + // method knows whether or not the object was allocated dynamically, + // and can act accordingly (i.e., deleting it if it was allocated + // dynamically, otherwise ignoring it). void *operator new (size_t n); // Overloaded new operator. This is used to unobtrusively detect @@ -114,7 +115,8 @@ public: void operator delete (void *); // This really should be private so that users are forced to call - // destroy(). + // destroy(). Unfortunately, the C++ standard doesn't allow there + // to be a public new and a private delete. private: void shutdown (void); |