diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-10-07 15:01:08 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-10-07 15:01:08 +0000 |
commit | 19fe222179a7c51ce950e304140425b5218baf85 (patch) | |
tree | 3a9da62b24d5af402f830bcb4f5dbd9f547dc77b /src/jtutil | |
parent | f3d8ea3de182dcfac93a3ef230a80828817c4a46 (diff) |
try sme more syntax tweaks to see if we can get it right this time
(icc was still complaining last time)
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@798 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/jtutil')
-rw-r--r-- | src/jtutil/fuzzy.cc | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/jtutil/fuzzy.cc b/src/jtutil/fuzzy.cc index b1547f9..8921f98 100644 --- a/src/jtutil/fuzzy.cc +++ b/src/jtutil/fuzzy.cc @@ -7,7 +7,7 @@ // jtutil::fuzzy::floor // jtutil::fuzzy::ceiling // -// ***** template instantiations ***** +// ***** template instantiations and specializations ***** // #include "stdc.h" @@ -70,7 +70,7 @@ return fuzzy<fp>::is_integer(x) //****************************************************************************** // -// ***** template instantiations ***** +// ***** template instantiations and specializations ***** // // @@ -80,17 +80,16 @@ return fuzzy<fp>::is_integer(x) namespace jtutil { -// dummy generic version of fuzzy::tolerance (unused) -template <typename fp> - fp fuzzy<fp>::tolerance = 0.0; - -// instantiation for <float> +// template instantiations template class jtutil::fuzzy<float>; -template<> - float fuzzy<float>::tolerance = 1.0e-5; // about 100 * FLT_EPSILON - -// instantiations for <double> template class jtutil::fuzzy<double>; -template<> + +// template specializations +template <typename fp> + fp fuzzy<fp>::tolerance = 0.0; // dummy generic version of + // fuzzy::tolerance (unused) +template <> + float fuzzy<float>::tolerance = 1.0e-5; // about 100 * FLT_EPSILON +template <> double fuzzy<double>::tolerance = 1.0e-12; // about 1e4 * DBL_EPSILON } // namespace jtutil:: |