summaryrefslogtreecommitdiff
path: root/ace/Container_Instantiations.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ace/Container_Instantiations.cpp')
-rw-r--r--ace/Container_Instantiations.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/ace/Container_Instantiations.cpp b/ace/Container_Instantiations.cpp
new file mode 100644
index 00000000000..9b45dacf6e4
--- /dev/null
+++ b/ace/Container_Instantiations.cpp
@@ -0,0 +1,19 @@
+// $Id$
+#include "ace/CDR_Base.h"
+#include "ace/Unbounded_Queue.h"
+
+// 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*/