diff options
author | Steve Huston <shuston@riverace.com> | 1998-07-03 13:46:21 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1998-07-03 13:46:21 +0000 |
commit | f9aa3de1d18b1fb444701cdde907b305647726a7 (patch) | |
tree | 96efa00243d63a6b3ce106e1c7ae190155bbdd4b /netsvcs/lib/Name_Handler.h | |
parent | dba20a85277662696497374eacf489e3a9bf6e52 (diff) | |
download | ATCD-f9aa3de1d18b1fb444701cdde907b305647726a7.tar.gz |
Moved a class from .cpp to .h - AIX xlC requires it there for template
instantiation.
Diffstat (limited to 'netsvcs/lib/Name_Handler.h')
-rw-r--r-- | netsvcs/lib/Name_Handler.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/netsvcs/lib/Name_Handler.h b/netsvcs/lib/Name_Handler.h index 087a7d0292a..92507c968cc 100644 --- a/netsvcs/lib/Name_Handler.h +++ b/netsvcs/lib/Name_Handler.h @@ -23,8 +23,18 @@ #include "ace/Naming_Context.h" #include "ace/Name_Request_Reply.h" -// Forward declaration. -class ACE_Naming_Context; + +// This helper class adds the correct default constructor to the +// ACE_Naming_Context class so that we can use it in ACE_Singleton. +class Naming_Context : public ACE_Naming_Context +{ +public: + Naming_Context (void) + : ACE_Naming_Context (ACE_Naming_Context::NET_LOCAL) {} +}; + +typedef ACE_Singleton<Naming_Context, ACE_SYNCH_NULL_MUTEX> NAMING_CONTEXT; + class ACE_Svc_Export ACE_Name_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> // = TITLE |