diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-20 11:07:09 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2006-04-20 11:07:09 +0000 |
commit | 8dd08f1d02f921f8f4dae2cb724c26740cef0bd3 (patch) | |
tree | a71f1120cc89c7d1ee2c75cef6901b6dc12ff432 /examples | |
parent | 81f43faf7412dc4e0b8e2f6de1cba1e6241da038 (diff) | |
download | ATCD-8dd08f1d02f921f8f4dae2cb724c26740cef0bd3.tar.gz |
ChangeLogTag: Thu Apr 20 09:14:12 UTC 2006 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples')
16 files changed, 4 insertions, 222 deletions
diff --git a/examples/Connection/blocking/SPIPE-acceptor.cpp b/examples/Connection/blocking/SPIPE-acceptor.cpp index 5f8810a076f..8885b0353cd 100644 --- a/examples/Connection/blocking/SPIPE-acceptor.cpp +++ b/examples/Connection/blocking/SPIPE-acceptor.cpp @@ -219,16 +219,6 @@ IPC_Server::svc (void) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Svc_Handler <ACE_SPIPE_STREAM, ACE_NULL_SYNCH>; -template class ACE_Concurrency_Strategy<Svc_Handler>; -template class ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Svc_Handler <ACE_SPIPE_STREAM, ACE_NULL_SYNCH> -#pragma instantiate ACE_Concurrency_Strategy<Svc_Handler> -#pragma instantiate ACE_Oneshot_Acceptor<Svc_Handler, ACE_SPIPE_ACCEPTOR> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #endif /* ACE_WIN32 || ACE_HAS_AIO_CALLS*/ #endif /* SPIPE_ACCEPTOR_C */ diff --git a/examples/Connection/blocking/SPIPE-connector.cpp b/examples/Connection/blocking/SPIPE-connector.cpp index be88aa7f668..6618b64f0cb 100644 --- a/examples/Connection/blocking/SPIPE-connector.cpp +++ b/examples/Connection/blocking/SPIPE-connector.cpp @@ -217,15 +217,3 @@ IPC_Client::parse_args (int argc, ACE_TCHAR *argv[]) #endif /* SPIPE_CONNECTOR */ - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector_Base<Peer_Handler>; -template class ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR>; -template class ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<Peer_Handler>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Connector_Base<Peer_Handler> -#pragma instantiate ACE_Connector<Peer_Handler, ACE_SPIPE_CONNECTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<Peer_Handler> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Connection/misc/Connection_Handler.cpp b/examples/Connection/misc/Connection_Handler.cpp index 5129fc7cb92..9e2b1577405 100644 --- a/examples/Connection/misc/Connection_Handler.cpp +++ b/examples/Connection/misc/Connection_Handler.cpp @@ -224,10 +224,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Acceptor<Connection_Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Acceptor<Connection_Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Connection/misc/test_upipe.cpp b/examples/Connection/misc/test_upipe.cpp index e986ba069cb..23c85b283a3 100644 --- a/examples/Connection/misc/test_upipe.cpp +++ b/examples/Connection/misc/test_upipe.cpp @@ -17,32 +17,6 @@ ACE_RCSID(misc, test_upipe, "$Id$") #include "test_upipe.h" -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Accept_Strategy<Server_Service, ACE_UPIPE_ACCEPTOR>; -template class ACE_Acceptor<Server_Service, ACE_UPIPE_ACCEPTOR>; -template class ACE_Concurrency_Strategy<Server_Service>; -template class ACE_Connector_Base<Client_Service>; -template class ACE_Connector<Client_Service, ACE_UPIPE_CONNECTOR>; -template class ACE_Creation_Strategy<Server_Service>; -template class ACE_Scheduling_Strategy<Server_Service>; -template class ACE_Strategy_Acceptor<Server_Service, ACE_UPIPE_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_UPIPE_STREAM, ACE_NULL_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<Client_Service>; -template class ACE_Thread_Strategy<Server_Service>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Accept_Strategy<Server_Service, ACE_UPIPE_ACCEPTOR> -#pragma instantiate ACE_Acceptor<Server_Service, ACE_UPIPE_ACCEPTOR> -#pragma instantiate ACE_Concurrency_Strategy<Server_Service> -#pragma instantiate ACE_Connector_Base<Client_Service> -#pragma instantiate ACE_Connector<Client_Service, ACE_UPIPE_CONNECTOR> -#pragma instantiate ACE_Creation_Strategy<Server_Service> -#pragma instantiate ACE_Scheduling_Strategy<Server_Service> -#pragma instantiate ACE_Strategy_Acceptor<Server_Service, ACE_UPIPE_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_UPIPE_STREAM, ACE_NULL_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<Client_Service> -#pragma instantiate ACE_Thread_Strategy<Server_Service> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - class Server : public ACE_Strategy_Acceptor <Server_Service, ACE_UPIPE_ACCEPTOR> { // = TITLE diff --git a/examples/Connection/non_blocking/test_lsock_acceptor.cpp b/examples/Connection/non_blocking/test_lsock_acceptor.cpp index c79ab0f3740..cdfcfe5e65c 100644 --- a/examples/Connection/non_blocking/test_lsock_acceptor.cpp +++ b/examples/Connection/non_blocking/test_lsock_acceptor.cpp @@ -46,19 +46,4 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_acceptor.svc (); } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Concurrency_Strategy<SVC_HANDLER>; -template class ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_LSOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_LSOCK_STREAM, ACE_NULL_SYNCH>; -template class IPC_Server<SVC_HANDLER, ACE_LSOCK_ACCEPTOR>; -template class Svc_Handler<ACE_LSOCK_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Concurrency_Strategy<SVC_HANDLER> -#pragma instantiate ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_LSOCK_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_LSOCK_STREAM, ACE_NULL_SYNCH> -#pragma instantiate IPC_Server<SVC_HANDLER, ACE_LSOCK_ACCEPTOR> -#pragma instantiate Svc_Handler<ACE_LSOCK_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #endif /* ! ACE_LACKS_UNIX_DOMAIN_SOCKETS */ diff --git a/examples/Connection/non_blocking/test_lsock_connector.cpp b/examples/Connection/non_blocking/test_lsock_connector.cpp index cb6b1328975..486fda797e8 100644 --- a/examples/Connection/non_blocking/test_lsock_connector.cpp +++ b/examples/Connection/non_blocking/test_lsock_connector.cpp @@ -43,20 +43,4 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_connector.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector_Base<PEER_HANDLER>; -template class ACE_Connector<PEER_HANDLER, ACE_LSOCK_CONNECTOR>; -template class ACE_Svc_Handler<ACE_LSOCK_STREAM, ACE_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<PEER_HANDLER>; -template class IPC_Client<PEER_HANDLER, ACE_LSOCK_CONNECTOR>; -template class Peer_Handler<ACE_LSOCK_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Connector_Base<PEER_HANDLER> -#pragma instantiate ACE_Connector<PEER_HANDLER, ACE_LSOCK_CONNECTOR> -#pragma instantiate ACE_Svc_Handler<ACE_LSOCK_STREAM, ACE_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<PEER_HANDLER> -#pragma instantiate IPC_Client<PEER_HANDLER, ACE_LSOCK_CONNECTOR> -#pragma instantiate Peer_Handler<ACE_LSOCK_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #endif /* ! ACE_LACKS_UNIX_DOMAIN_SOCKETS */ diff --git a/examples/Connection/non_blocking/test_sock_acceptor.cpp b/examples/Connection/non_blocking/test_sock_acceptor.cpp index 9cf756e5c17..6a9b9fcdcbb 100644 --- a/examples/Connection/non_blocking/test_sock_acceptor.cpp +++ b/examples/Connection/non_blocking/test_sock_acceptor.cpp @@ -32,17 +32,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_acceptor.svc (); } - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Concurrency_Strategy<SVC_HANDLER>; -template class ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_SOCK_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class IPC_Server<SVC_HANDLER, ACE_SOCK_ACCEPTOR>; -template class Svc_Handler<ACE_SOCK_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Concurrency_Strategy<SVC_HANDLER> -#pragma instantiate ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#pragma instantiate IPC_Server<SVC_HANDLER, ACE_SOCK_ACCEPTOR> -#pragma instantiate Svc_Handler<ACE_SOCK_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Connection/non_blocking/test_sock_connector.cpp b/examples/Connection/non_blocking/test_sock_connector.cpp index 50c7931cbf4..66d53e1f0b2 100644 --- a/examples/Connection/non_blocking/test_sock_connector.cpp +++ b/examples/Connection/non_blocking/test_sock_connector.cpp @@ -47,18 +47,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_connector.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector_Base<PEER_HANDLER>; -template class ACE_Connector<PEER_HANDLER, ACE_SOCK_CONNECTOR>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<PEER_HANDLER>; -template class IPC_Client<PEER_HANDLER, ACE_SOCK_CONNECTOR>; -template class Peer_Handler<ACE_SOCK_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Connector_Base<PEER_HANDLER> -#pragma instantiate ACE_Connector<PEER_HANDLER, ACE_SOCK_CONNECTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<PEER_HANDLER> -#pragma instantiate IPC_Client<PEER_HANDLER, ACE_SOCK_CONNECTOR> -#pragma instantiate Peer_Handler<ACE_SOCK_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ diff --git a/examples/Connection/non_blocking/test_spipe_acceptor.cpp b/examples/Connection/non_blocking/test_spipe_acceptor.cpp index c0d137f626a..ed33bb31683 100644 --- a/examples/Connection/non_blocking/test_spipe_acceptor.cpp +++ b/examples/Connection/non_blocking/test_spipe_acceptor.cpp @@ -34,19 +34,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_acceptor.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Concurrency_Strategy<SVC_HANDLER>; -template class ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_SPIPE_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH>; -template class IPC_Server<SVC_HANDLER, ACE_SPIPE_ACCEPTOR>; -template class Svc_Handler<ACE_SPIPE_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Concurrency_Strategy<SVC_HANDLER> -#pragma instantiate ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_SPIPE_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_NULL_SYNCH> -#pragma instantiate IPC_Server<SVC_HANDLER, ACE_SPIPE_ACCEPTOR> -#pragma instantiate Svc_Handler<ACE_SPIPE_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Connection/non_blocking/test_spipe_connector.cpp b/examples/Connection/non_blocking/test_spipe_connector.cpp index 2b777ffe334..fd5641f482d 100644 --- a/examples/Connection/non_blocking/test_spipe_connector.cpp +++ b/examples/Connection/non_blocking/test_spipe_connector.cpp @@ -29,22 +29,6 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return peer_connector.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector_Base<PEER_HANDLER>; -template class ACE_Connector<PEER_HANDLER, ACE_SPIPE_CONNECTOR>; -template class ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<PEER_HANDLER>; -template class IPC_Client<PEER_HANDLER, ACE_SPIPE_CONNECTOR>; -template class Peer_Handler<ACE_SPIPE_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Connector_Base<PEER_HANDLER> -#pragma instantiate ACE_Connector<PEER_HANDLER, ACE_SPIPE_CONNECTOR> -#pragma instantiate ACE_Svc_Handler<ACE_SPIPE_STREAM, ACE_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<PEER_HANDLER> -#pragma instantiate IPC_Client<PEER_HANDLER, ACE_SPIPE_CONNECTOR> -#pragma instantiate Peer_Handler<ACE_SPIPE_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Connection/non_blocking/test_tli_acceptor.cpp b/examples/Connection/non_blocking/test_tli_acceptor.cpp index 5654f62ad74..8f281c26bd1 100644 --- a/examples/Connection/non_blocking/test_tli_acceptor.cpp +++ b/examples/Connection/non_blocking/test_tli_acceptor.cpp @@ -31,20 +31,6 @@ main (int argc, char *argv[]) return peer_acceptor.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Concurrency_Strategy<SVC_HANDLER>; -template class ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_TLI_ACCEPTOR>; -template class ACE_Svc_Handler<ACE_TLI_STREAM, ACE_NULL_SYNCH>; -template class IPC_Server<SVC_HANDLER, ACE_TLI_ACCEPTOR>; -template class Svc_Handler<ACE_TLI_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Concurrency_Strategy<SVC_HANDLER> -#pragma instantiate ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_TLI_ACCEPTOR> -#pragma instantiate ACE_Svc_Handler<ACE_TLI_STREAM, ACE_NULL_SYNCH> -#pragma instantiate IPC_Server<SVC_HANDLER, ACE_TLI_ACCEPTOR> -#pragma instantiate Svc_Handler<ACE_TLI_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/Connection/non_blocking/test_tli_connector.cpp b/examples/Connection/non_blocking/test_tli_connector.cpp index afb2636d7d5..67756fe795d 100644 --- a/examples/Connection/non_blocking/test_tli_connector.cpp +++ b/examples/Connection/non_blocking/test_tli_connector.cpp @@ -29,22 +29,6 @@ main (int argc, char *argv[]) return peer_connector.svc (); } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Connector_Base<PEER_HANDLER>; -template class ACE_Connector<PEER_HANDLER, ACE_TLI_CONNECTOR>; -template class ACE_Svc_Handler<ACE_TLI_STREAM, ACE_SYNCH>; -template class ACE_NonBlocking_Connect_Handler<PEER_HANDLER>; -template class IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR>; -template class Peer_Handler<ACE_TLI_STREAM>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Connector_Base<PEER_HANDLER> -#pragma instantiate ACE_Connector<PEER_HANDLER, ACE_TLI_CONNECTOR> -#pragma instantiate ACE_Svc_Handler<ACE_TLI_STREAM, ACE_SYNCH> -#pragma instantiate ACE_NonBlocking_Connect_Handler<PEER_HANDLER> -#pragma instantiate IPC_Client<PEER_HANDLER, ACE_TLI_CONNECTOR> -#pragma instantiate Peer_Handler<ACE_TLI_STREAM> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - #else int ACE_TMAIN (int, ACE_TCHAR *[]) diff --git a/examples/IOStream/client/iostream_client.cpp b/examples/IOStream/client/iostream_client.cpp index 609e335c5d5..e8ddedf9b44 100644 --- a/examples/IOStream/client/iostream_client.cpp +++ b/examples/IOStream/client/iostream_client.cpp @@ -69,14 +69,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } - -#if !defined (ACE_LACKS_ACE_IOSTREAM) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_IOStream <ACE_SOCK_Stream>; -template class ACE_Streambuf_T <ACE_SOCK_Stream>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_IOStream <ACE_SOCK_Stream> -#pragma instantiate ACE_Streambuf_T <ACE_SOCK_Stream> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* !ACE_LACKS_ACE_IOSTREAM */ diff --git a/examples/IOStream/server/iostream_server.cpp b/examples/IOStream/server/iostream_server.cpp index 0fc83436f69..656b432a579 100644 --- a/examples/IOStream/server/iostream_server.cpp +++ b/examples/IOStream/server/iostream_server.cpp @@ -130,18 +130,3 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv []) return 0; } - -#if !defined (ACE_LACKS_ACE_IOSTREAM) -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Acceptor <Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_IOStream <ACE_SOCK_Stream>; -template class ACE_Streambuf_T <ACE_SOCK_Stream>; -template class ACE_Svc_Handler <ACE_SOCK_IOSTREAM, ACE_NULL_SYNCH>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Acceptor <Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_IOStream <ACE_SOCK_Stream> -#pragma instantiate ACE_Streambuf_T <ACE_SOCK_Stream> -#pragma instantiate ACE_Svc_Handler <ACE_SOCK_IOSTREAM, ACE_NULL_SYNCH> -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ - -#endif /* !ACE_LACKS_ACE_IOSTREAM */ diff --git a/examples/Logger/Acceptor-server/server_loggerd.cpp b/examples/Logger/Acceptor-server/server_loggerd.cpp index 159bcdf93ce..fac6447d898 100644 --- a/examples/Logger/Acceptor-server/server_loggerd.cpp +++ b/examples/Logger/Acceptor-server/server_loggerd.cpp @@ -231,25 +231,11 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) return 0; } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Acceptor<Logging_Handler, ACE_SOCK_ACCEPTOR>; -template class ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>; -template class ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex>; -template class ACE_Singleton<Options, ACE_Null_Mutex>; -template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; -template class ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Acceptor<Logging_Handler, ACE_SOCK_ACCEPTOR> -#pragma instantiate ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> -#pragma instantiate ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex> -#pragma instantiate ACE_Singleton<Options, ACE_Null_Mutex> -#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> -#pragma instantiate ACE_Test_and_Set<ACE_Null_Mutex, sig_atomic_t> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> * ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>::singleton_; template ACE_Singleton<Options, ACE_Null_Mutex> * ACE_Singleton<Options, ACE_Null_Mutex>::singleton_; template ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex> * ACE_Singleton<ACE_Test_and_Set <ACE_Null_Mutex, sig_atomic_t>, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ diff --git a/examples/Logger/simple-server/server_loggerd.cpp b/examples/Logger/simple-server/server_loggerd.cpp index 49981dc92ff..f323a2f3826 100644 --- a/examples/Logger/simple-server/server_loggerd.cpp +++ b/examples/Logger/simple-server/server_loggerd.cpp @@ -79,11 +79,7 @@ ACE_TMAIN (int argc, ACE_TCHAR *argv[]) } -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>; -#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> -#elif defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) +#if defined (ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION) template ACE_Singleton<ACE_Reactor, ACE_Null_Mutex> * ACE_Singleton<ACE_Reactor, ACE_Null_Mutex>::singleton_; -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ +#endif /* ACE_HAS_EXPLICIT_STATIC_TEMPLATE_MEMBER_INSTANTIATION */ |