diff --git a/lemon/tolerance.h b/lemon/tolerance.h --- a/lemon/tolerance.h +++ b/lemon/tolerance.h @@ -48,9 +48,13 @@ ///\sa Tolerance ///\sa Tolerance ///\sa Tolerance +#if defined __GNUC__ && !defined __STRICT_ANSI__ ///\sa Tolerance +#endif ///\sa Tolerance +#if defined __GNUC__ && !defined __STRICT_ANSI__ ///\sa Tolerance +#endif template class Tolerance @@ -130,7 +134,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -181,7 +185,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -232,7 +236,7 @@ ///Returns \c true if \c a is \e surely negative bool negative(Value a) const { return -_epsilon>a; } ///Returns \c true if \c a is \e surely non-zero - bool nonZero(Value a) const { return positive(a)||negative(a); }; + bool nonZero(Value a) const { return positive(a)||negative(a); } ///@} @@ -265,7 +269,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0; }; + static bool nonZero(Value a) { return a!=0; } ///@} @@ -298,7 +302,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0; }; + static bool nonZero(Value a) { return a!=0; } ///@} @@ -332,7 +336,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -365,7 +369,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -402,7 +406,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value a) { return 0>a; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@} @@ -437,7 +441,7 @@ ///Returns \c true if \c a is \e surely negative static bool negative(Value) { return false; } ///Returns \c true if \c a is \e surely non-zero - static bool nonZero(Value a) { return a!=0;}; + static bool nonZero(Value a) { return a!=0;} ///@}