diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 15:21:42 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 15:21:42 +0000 |
commit | fce52ffe3b32b17e99a26e5984912621f2425def (patch) | |
tree | dc8ed149171ab6296706f8e8fbc294b1e7fecbde | |
parent | 8e9078420975f4e1a436e8da8067c07200eb1af3 (diff) |
change syntax of template instantiations yet again, to satisfy(??)
regatta C++ compiler
-- now do everything inside namespace jtutil { ... }
instead of using individual jtutil:: qualifiers
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@884 f88db872-0e4f-0410-b76b-b9085cfa78c5
-rw-r--r-- | src/jtutil/fuzzy.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/jtutil/fuzzy.cc b/src/jtutil/fuzzy.cc index 25a6793..549012e 100644 --- a/src/jtutil/fuzzy.cc +++ b/src/jtutil/fuzzy.cc @@ -78,13 +78,16 @@ return fuzzy<fp>::is_integer(x) // me figure out the correct syntax here! // +namespace jtutil + { // initializations of fuzzy::tolerance for each instantation we're going to make template <> - float jtutil::fuzzy<float>::tolerance_ = 1.0e-5; // about 100 * FLT_EPSILON + float fuzzy<float>::tolerance_ = 1.0e-5; // about 100 * FLT_EPSILON template <> - double jtutil::fuzzy<double>::tolerance_ = 1.0e-12; // about 1e4 * DBL_EPSILON + double fuzzy<double>::tolerance_ = 1.0e-12; // about 1e4 * DBL_EPSILON // template instantiations -template class jtutil::fuzzy<float>; -template class jtutil::fuzzy<double>; +template class fuzzy<float>; +template class fuzzy<double>; + } // namespace jtutil:: |