Fixed typos.

Replace NumTraits<bool>::dummy_precision() (three locations) by false in order to suppress warnings.
This commit is contained in:
Hauke Heibel 2010-02-11 11:31:22 +01:00
parent 48f5980669
commit 93e86b0884
2 changed files with 4 additions and 4 deletions

View File

@ -321,15 +321,15 @@ template<> inline bool ei_random()
{
return (ei_random<int>(0,1) == 1);
}
inline bool ei_isMuchSmallerThan(bool a, bool, bool = NumTraits<bool>::dummy_precision())
inline bool ei_isMuchSmallerThan(bool a, bool, bool = false/*NumTraits<bool>::dummy_precision()*/)
{
return !a;
}
inline bool ei_isApprox(bool a, bool b, bool = NumTraits<bool>::dummy_precision())
inline bool ei_isApprox(bool a, bool b, bool = false/*NumTraits<bool>::dummy_precision()*/)
{
return a == b;
}
inline bool ei_isApproxOrLessThan(bool a, bool b, bool = NumTraits<bool>::dummy_precision())
inline bool ei_isApproxOrLessThan(bool a, bool b, bool = false/*NumTraits<bool>::dummy_precision()*/)
{
return int(a) <= int(b);
}

View File

@ -47,7 +47,7 @@
* and to \c 1 otherwise.
* \li An epsilon() function which, unlike std::numeric_limits::epsilon(), returns a \a Real instead of a \a T.
* \li A dummy_precision() function returning a weak epsilon value. It is mainly used by the fuzzy comparison operators.
* \li Two higest() and lowest() functions returning the higest and lowest possible values respectively.
* \li Two highest() and lowest() functions returning the highest and lowest possible values respectively.
*/
template<typename T> struct NumTraits;