diff options
author | schnetter <> | 2002-05-05 20:16:00 +0000 |
---|---|---|
committer | schnetter <> | 2002-05-05 20:16:00 +0000 |
commit | 932f53d39a4b71185c76b5d8aa3ec6b07870b396 (patch) | |
tree | fa5596366195128a09f5c9d5df7bbb54553397e8 /Carpet/CarpetLib/src/vect.cc | |
parent | 42821d1d22cd21a1e54d7896af721ab1536ea84a (diff) |
Removed user choice of C++ template instantiation model. In my
Removed user choice of C++ template instantiation model. In my
experience, only one model works, namely explicit template
instantiaion. No need to pretend that the other things work with
Cactus.
(Don't complain to me -- I also think it's a shame that something that
calls itself "compiler" isn't able to do this automatically. Many
other compilers for many other languages do this kind of thing without
even mentioning it. So there's either something fundamentally wrong
with the C++ standard, or with the C++ compiler writers, or with the
perceived wishlists of C++ users. And I would bet an arm and a leg
that it's not the second of these.)
darcs-hash:20020505201656-07bb3-a1b8dfc5587d59c718ad25ce89d0c8973c2b3e6f.gz
Diffstat (limited to 'Carpet/CarpetLib/src/vect.cc')
-rw-r--r-- | Carpet/CarpetLib/src/vect.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Carpet/CarpetLib/src/vect.cc b/Carpet/CarpetLib/src/vect.cc index 85a608ee9..9fea98e59 100644 --- a/Carpet/CarpetLib/src/vect.cc +++ b/Carpet/CarpetLib/src/vect.cc @@ -5,7 +5,7 @@ copyright : (C) 2000 by Erik Schnetter email : schnetter@astro.psu.edu - $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.cc,v 1.7 2002/03/11 13:17:13 schnetter Exp $ + $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/vect.cc,v 1.8 2002/05/05 22:17:03 schnetter Exp $ ***************************************************************************/ @@ -24,9 +24,7 @@ #include "defs.hh" -#if !defined(TMPL_IMPLICIT) || !defined(VECT_HH) -# include "vect.hh" -#endif +#include "vect.hh" using namespace std; @@ -66,8 +64,6 @@ void vect<T,D>::output (ostream& os) const { -#if defined(TMPL_EXPLICIT) - // Note: We need all dimensions all the time. template class vect<int,1>; template class vect<int,2>; @@ -77,5 +73,3 @@ template void vect<double,3>::input (istream& is); template void vect<vect<bool,2>,3>::input (istream& is); template void vect<double,3>::output (ostream& os) const; template void vect<vect<bool,2>,3>::output (ostream& os) const; - -#endif |