From 82a6c078a98f687027896a17a097ba0eb784a556 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 13 Sep 2001 14:56:32 +0000 Subject: [PATCH] no-longer needed since gnu now uses Borland style auto template instantiation --- README.cxxTemplates | 43 ------------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 README.cxxTemplates diff --git a/README.cxxTemplates b/README.cxxTemplates deleted file mode 100644 index b2aebab1e..000000000 --- a/README.cxxTemplates +++ /dev/null @@ -1,43 +0,0 @@ - -In Stroustrups's "The C++ Programming Language" Appendix A: r.14.9 -(ANSI/ISO resolutions) a mechanism is described for the explicit -instantiation of template member functions (that are not inline). -At this time some compilers do not support this mechanism (and use -a template database snd/or smart linker instead). Other compilers -(such as g++) provide only limited support for other forms of -instantiation (g++ currently supplies a smart linker for templates -only on a limited set of OS). - -Since there is no standard mechanism for instatiating -templates at this time we are defining the preprocessor flag -EXPL_TEMPL in the build system when the compiler supports -explicit instantiation and the compiler does not support -automatic instantiation via a smart linker and/or template -database. - -EPICS codes that use templates may need to include a code block -as follow that instantiates the template only once into each -program. - -#include -#include - -// -// 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 templXXX ; -#endif - -Jeff Hill 3-6-97 -johill@lanl.gov - -