]> www.ginac.de Git - ginac.git/blobdiff - ginac/operators.cpp
* comparison operators should return const relationals.
[ginac.git] / ginac / operators.cpp
index 3a4229ba1dbb72e1535671e316fbd7a076079fea..00c33a73c0a0971bd71cae6d767fd558c62d04f7 100644 (file)
@@ -271,37 +271,37 @@ const numeric operator--(numeric & lh, int)
 
 // binary relational operators ex with ex
 
-relational operator==(const ex & lh, const ex & rh)
+const relational operator==(const ex & lh, const ex & rh)
 {
        debugmsg("operator==(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::equal);
 }
 
-relational operator!=(const ex & lh, const ex & rh)
+const relational operator!=(const ex & lh, const ex & rh)
 {
        debugmsg("operator!=(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::not_equal);
 }
 
-relational operator<(const ex & lh, const ex & rh)
+const relational operator<(const ex & lh, const ex & rh)
 {
        debugmsg("operator<(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::less);
 }
 
-relational operator<=(const ex & lh, const ex & rh)
+const relational operator<=(const ex & lh, const ex & rh)
 {
        debugmsg("operator<=(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::less_or_equal);
 }
 
-relational operator>(const ex & lh, const ex & rh)
+const relational operator>(const ex & lh, const ex & rh)
 {
        debugmsg("operator>(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::greater);
 }
 
-relational operator>=(const ex & lh, const ex & rh)
+const relational operator>=(const ex & lh, const ex & rh)
 {
        debugmsg("operator>=(ex,ex)",LOGLEVEL_OPERATOR);
        return relational(lh,rh,relational::greater_or_equal);