diff --git a/src/cas/example/directoryService/Makefile.Host b/src/cas/example/directoryService/Makefile.Host index dbc5ad9f1..3e50129fd 100644 --- a/src/cas/example/directoryService/Makefile.Host +++ b/src/cas/example/directoryService/Makefile.Host @@ -10,7 +10,6 @@ PROD_LIBS := cas ca gdd Com SRCS += main.cc SRCS += directoryServer.cc -SRCS += templInst.cc PROD := caDirServ diff --git a/src/cas/example/directoryService/directoryServer.cc b/src/cas/example/directoryService/directoryServer.cc index def5b59fd..e1ba29e5a 100644 --- a/src/cas/example/directoryService/directoryServer.cc +++ b/src/cas/example/directoryService/directoryServer.cc @@ -8,6 +8,21 @@ const pvInfo *pvInfo::pFirst; +// +// if the compiler supports explicit instantiation of +// template member functions +// +#if defined(EXPL_TEMPL) + // + // From Stroustrups's "The C++ Programming Language" + // Appendix A: r.14.9 + // + // This explicitly instantiates the template class's + // member functions into "templInst.o" + // + template class resTable ; +#endif + // // directoryServer::directoryServer() // diff --git a/src/cas/example/directoryService/templInst.cc b/src/cas/example/directoryService/templInst.cc deleted file mode 100644 index 9716054b4..000000000 --- a/src/cas/example/directoryService/templInst.cc +++ /dev/null @@ -1,27 +0,0 @@ - -// -// $Id$ -// -// Explcit instantiation of template instances used by the -// example server -// -// - -#include "directoryServer.h" -#include "resourceLib.cc" - -// -// if the compiler supports explicit instantiation of -// template member functions -// -#if defined(EXPL_TEMPL) - // - // From Stroustrups's "The C++ Programming Language" - // Appendix A: r.14.9 - // - // This explicitly instantiates the template class's - // member functions into "templInst.o" - // - template class resTable ; -#endif -