diff options
Diffstat (limited to 'tests/Dev_Poll_Reactor_Test.cpp')
-rw-r--r-- | tests/Dev_Poll_Reactor_Test.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/Dev_Poll_Reactor_Test.cpp b/tests/Dev_Poll_Reactor_Test.cpp index 9535fbfb186..2b48767b875 100644 --- a/tests/Dev_Poll_Reactor_Test.cpp +++ b/tests/Dev_Poll_Reactor_Test.cpp @@ -581,6 +581,25 @@ run_main (int, ACE_TCHAR *[]) return 0; } + +#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) + +template class ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH>; +template class ACE_Acceptor<Server, ACE_SOCK_ACCEPTOR>; +template class ACE_Connector_Base<Client>; +template class ACE_Connector<Client, ACE_SOCK_CONNECTOR>; +template class ACE_NonBlocking_Connect_Handler<Client>; + +#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) + +#pragma instantiate ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_NULL_SYNCH> +#pragma instantiate ACE_Acceptor<Server, ACE_SOCK_ACCEPTOR> +#pragma instantiate ACE_Connector_Base<Client> +#pragma instantiate ACE_Connector<Client, ACE_SOCK_CONNECTOR> +#pragma instantiate ACE_NonBlocking_Connect_Handler<Client> + +#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + #else int |