adding operators <= > >= for Micro$oft and kcc

This commit is contained in:
Olivier Devillers 2000-06-23 09:36:34 +00:00
parent a917699d0c
commit be33ceea7b
3 changed files with 16 additions and 4 deletions

View File

@ -149,13 +149,22 @@ inline Fixed_precision_nt operator/
inline bool operator<
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() < b.to_double() );}
{ return (a.to_double() < b.to_double() );}
inline bool operator<=
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() <= b.to_double() );}
inline bool operator>
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() > b.to_double() );}
inline bool operator>=
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() >= b.to_double() );}
inline bool operator==
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() ==b.to_double() );}
{ return (a.to_double() == b.to_double() );}
inline bool operator!=
(Fixed_precision_nt a, Fixed_precision_nt b)
{ return (a.to_double() !=b.to_double() );}
{ return (a.to_double() != b.to_double() );}
std::ostream &operator<<(std::ostream &os, const Fixed_precision_nt& a)

View File

@ -10,6 +10,9 @@ predicates.
Versions
2.15 (23 Jun 2000)
adding operators <= > >= for Micro$oft and kcc
2.14 (17 May 2000)
improved version, no longer .C file, + pb borland std:: in example

View File

@ -1 +1 @@
2.14 (17 May 2000)
2.15 (23 Jun 2000)