summaryrefslogtreecommitdiff
path: root/ace/Template_Instantiations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Template_Instantiations.cpp')
-rw-r--r--ace/Template_Instantiations.cpp23
1 files changed, 20 insertions, 3 deletions
diff --git a/ace/Template_Instantiations.cpp b/ace/Template_Instantiations.cpp
index 28f6aa318e7..645917aca35 100644
--- a/ace/Template_Instantiations.cpp
+++ b/ace/Template_Instantiations.cpp
@@ -1,6 +1,25 @@
// $Id$
+#include "ace/CDR_Base.h"
+#include "ace/Unbounded_Queue.h"
-// Note: this file has been created through concatenation of ALL
+// Instantiations of templates with basic data types that can be used
+// across ACE+TAO.
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+
+template class ACE_Node<ACE_INT32>;
+template class ACE_Unbounded_Queue<ACE_INT32>;
+template class ACE_Unbounded_Queue_Iterator<ACE_INT32>;
+
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+
+#pragma instantiate ACE_Node<ACE_INT32>;
+#pragma instantiate ACE_Unbounded_Queue<ACE_INT32>;
+#pragma instantiate ACE_Unbounded_Queue_Iterator<ACE_INT32>;
+
+#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION*/
+
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_FILE)
+// Note: this part has been created through concatenation of ALL
// explicit template instantiations in ACE, and only those that
// interfered with the multithreaded port of ACE to pSOS using the
// Diab D-C++ 4.1a compiler have been wrapped with the appropriate
@@ -10,8 +29,6 @@
// wish to extend this technique to instantiation pragmas, you will
// need to modify the preprocesor directives below
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION_FILE)
-
// header files that are not already included
#include "ace/Local_Tokens.h"
#include "ace/Token.h"