summaryrefslogtreecommitdiff
path: root/examples/Misc
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 21:48:20 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-07-31 21:48:20 +0000
commit86c5f836d1a679208716a422839d7da38ba41059 (patch)
tree1b3da514a0eb2064d0b27c62011db9492387b7dc /examples/Misc
parent13c10349a654c59c85bb62c7f7b9ab8e1424814c (diff)
downloadATCD-86c5f836d1a679208716a422839d7da38ba41059.tar.gz
added ACE_HAS_INSTANTIATION_PRAGMA support
Diffstat (limited to 'examples/Misc')
-rw-r--r--examples/Misc/test_dump.cpp17
-rw-r--r--examples/Misc/test_set.cpp8
2 files changed, 16 insertions, 9 deletions
diff --git a/examples/Misc/test_dump.cpp b/examples/Misc/test_dump.cpp
index 5b67488b405..994cd204c7b 100644
--- a/examples/Misc/test_dump.cpp
+++ b/examples/Misc/test_dump.cpp
@@ -12,7 +12,7 @@ public:
SOCK (void) { ACE_REGISTER_OBJECT (SOCK); }
~SOCK (void) { ACE_REMOVE_OBJECT; }
- void dump (void) const {
+ void dump (void) const {
cerr << "hello from SOCK = " << (u_long) this << endl;
}
@@ -25,7 +25,7 @@ public:
SOCK_Acceptor (void) { ACE_REGISTER_OBJECT (SOCK_Acceptor); }
~SOCK_Acceptor (void) { ACE_REMOVE_OBJECT; }
- void dump (void) const {
+ void dump (void) const {
cerr << "hello from SOCK_Acceptor = " << (u_long) this << endl;
}
@@ -45,7 +45,7 @@ public:
// ...
};
-int
+int
main (void)
{
SOCK outer_sock;
@@ -60,12 +60,17 @@ main (void)
SOCK_Acceptor inner_acceptor;
ACE_ODB::instance ()->dump_objects ();
}
- ACE_ODB::instance ()->dump_objects ();
+ ACE_ODB::instance ()->dump_objects ();
return 0;
}
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Dumpable_Adapter<SOCK_Stream>;
template class ACE_Dumpable_Adapter<SOCK>;
template class ACE_Dumpable_Adapter<SOCK_Acceptor>;
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#pragma instantiate ACE_Dumpable_Adapter<SOCK_Stream>
+#pragma instantiate ACE_Dumpable_Adapter<SOCK>
+#pragma instantiate ACE_Dumpable_Adapter<SOCK_Acceptor>
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+
diff --git a/examples/Misc/test_set.cpp b/examples/Misc/test_set.cpp
index e43d96bab82..b06f3d0fd76 100644
--- a/examples/Misc/test_set.cpp
+++ b/examples/Misc/test_set.cpp
@@ -2,11 +2,13 @@
#include "ace/Containers.h"
-int
+int
main (int, char *[])
{
return 0;
}
-#if defined (ACE_TEMPLATES_REQUIRE_SPECIALIZATION)
-#endif /* ACE_TEMPLATES_REQUIRE_SPECIALIZATION */
+#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
+#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
+#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
+