lemon/tolerance.h
 changeset 16 22696f89d183 parent 7 4d461e9867da child 39 0a01d811071f
1.1 --- a/lemon/tolerance.h	Thu Jan 03 01:08:23 2008 +0100
1.2 +++ b/lemon/tolerance.h	Thu Jan 03 01:24:09 2008 +0100
1.3 @@ -48,9 +48,13 @@
1.4    ///\sa Tolerance<double>
1.5    ///\sa Tolerance<long double>
1.6    ///\sa Tolerance<int>
1.7 +#if defined __GNUC__ && !defined __STRICT_ANSI__
1.8    ///\sa Tolerance<long long int>
1.9 +#endif
1.10    ///\sa Tolerance<unsigned int>
1.11 +#if defined __GNUC__ && !defined __STRICT_ANSI__
1.12    ///\sa Tolerance<unsigned long long int>
1.13 +#endif
1.15    template<class T>
1.16    class Tolerance
1.17 @@ -130,7 +134,7 @@
1.18      ///Returns \c true if \c a is \e surely negative
1.19      bool negative(Value a) const { return -_epsilon>a; }
1.20      ///Returns \c true if \c a is \e surely non-zero
1.21 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
1.22 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
1.24      ///@}
1.26 @@ -181,7 +185,7 @@
1.27      ///Returns \c true if \c a is \e surely negative
1.28      bool negative(Value a) const { return -_epsilon>a; }
1.29      ///Returns \c true if \c a is \e surely non-zero
1.30 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
1.31 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
1.33      ///@}
1.35 @@ -232,7 +236,7 @@
1.36      ///Returns \c true if \c a is \e surely negative
1.37      bool negative(Value a) const { return -_epsilon>a; }
1.38      ///Returns \c true if \c a is \e surely non-zero
1.39 -    bool nonZero(Value a) const { return positive(a)||negative(a); };
1.40 +    bool nonZero(Value a) const { return positive(a)||negative(a); }
1.42      ///@}
1.44 @@ -265,7 +269,7 @@
1.45      ///Returns \c true if \c a is \e surely negative
1.46      static bool negative(Value a) { return 0>a; }
1.47      ///Returns \c true if \c a is \e surely non-zero
1.48 -    static bool nonZero(Value a) { return a!=0; };
1.49 +    static bool nonZero(Value a) { return a!=0; }
1.51      ///@}
1.53 @@ -298,7 +302,7 @@
1.54      ///Returns \c true if \c a is \e surely negative
1.55      static bool negative(Value) { return false; }
1.56      ///Returns \c true if \c a is \e surely non-zero
1.57 -    static bool nonZero(Value a) { return a!=0; };
1.58 +    static bool nonZero(Value a) { return a!=0; }
1.60      ///@}
1.62 @@ -332,7 +336,7 @@
1.63      ///Returns \c true if \c a is \e surely negative
1.64      static bool negative(Value a) { return 0>a; }
1.65      ///Returns \c true if \c a is \e surely non-zero
1.66 -    static bool nonZero(Value a) { return a!=0;};
1.67 +    static bool nonZero(Value a) { return a!=0;}
1.69      ///@}
1.71 @@ -365,7 +369,7 @@
1.72      ///Returns \c true if \c a is \e surely negative
1.73      static bool negative(Value) { return false; }
1.74      ///Returns \c true if \c a is \e surely non-zero
1.75 -    static bool nonZero(Value a) { return a!=0;};
1.76 +    static bool nonZero(Value a) { return a!=0;}
1.78      ///@}
1.80 @@ -402,7 +406,7 @@
1.81      ///Returns \c true if \c a is \e surely negative
1.82      static bool negative(Value a) { return 0>a; }
1.83      ///Returns \c true if \c a is \e surely non-zero
1.84 -    static bool nonZero(Value a) { return a!=0;};
1.85 +    static bool nonZero(Value a) { return a!=0;}
1.87      ///@}
1.89 @@ -437,7 +441,7 @@
1.90      ///Returns \c true if \c a is \e surely negative
1.91      static bool negative(Value) { return false; }
1.92      ///Returns \c true if \c a is \e surely non-zero
1.93 -    static bool nonZero(Value a) { return a!=0;};
1.94 +    static bool nonZero(Value a) { return a!=0;}
1.96      ///@}