summaryrefslogtreecommitdiff
path: root/ace/Service_Templates.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Service_Templates.cpp')
-rw-r--r--ace/Service_Templates.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/ace/Service_Templates.cpp b/ace/Service_Templates.cpp
index d5f3f1b328b..11569316299 100644
--- a/ace/Service_Templates.cpp
+++ b/ace/Service_Templates.cpp
@@ -1,9 +1,19 @@
// $Id$
-#include "ace/Service_Templates.h"
-#include "ace/SString.h"
+#include "ace/config-lite.h"
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) || \
+ defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+# include "ace/Service_Templates.h"
+# include "ace/SString.h"
+
+#endif
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
template class ACE_Node<ACE_Static_Svc_Descriptor *>;
template class ACE_Unbounded_Set<ACE_Static_Svc_Descriptor *>;
template class ACE_Unbounded_Set_Iterator<ACE_Static_Svc_Descriptor *>;
@@ -42,7 +52,13 @@ template class ACE_Thru_Task<ACE_SYNCH>;
template class ACE_Task<ACE_NULL_SYNCH>;
template class ACE_Thru_Task<ACE_NULL_SYNCH>;
#endif /* ACE_HAS_THREADS */
+
+ACE_END_VERSIONED_NAMESPACE_DECL
+
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
#pragma instantiate ACE_Node<ACE_Static_Svc_Descriptor *>
#pragma instantiate ACE_Unbounded_Set<ACE_Static_Svc_Descriptor *>
#pragma instantiate ACE_Unbounded_Set_Iterator<ACE_Static_Svc_Descriptor *>
@@ -80,4 +96,8 @@ template class ACE_Thru_Task<ACE_SYNCH>;
#pragma instantiate ACE_Task<ACE_NULL_SYNCH>
#pragma instantiate ACE_Thru_Task<ACE_NULL_SYNCH>
#endif /* ACE_HAS_THREADS */
+
+ACE_END_VERSIONED_NAMESPACE_DECL
+
#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+