]> www.ginac.de Git - ginac.git/blobdiff - ginac/relational.cpp
* Remove support for <strstream>. It is too bug-ridden.
[ginac.git] / ginac / relational.cpp
index c4e34ddfd34ca44958e37632d6e041969f08680b..9d50fee22ff787ecac5314b22aaae3bb9b9f6c1d 100644 (file)
@@ -101,7 +101,7 @@ void relational::print(const print_context & c, unsigned level) const
 {
        debugmsg("relational print",LOGLEVEL_PRINT);
 
-       if (is_of_type(c, print_tree)) {
+       if (is_a<print_tree>(c)) {
 
                inherited::print(c, level);
 
@@ -192,7 +192,7 @@ ex relational::simplify_ncmul(const exvector & v) const
 
 int relational::compare_same_type(const basic & other) const
 {
-       GINAC_ASSERT(is_exactly_of_type(other, relational));
+       GINAC_ASSERT(is_exactly_a<relational>(other));
        const relational &oth = static_cast<const relational &>(other);
        
        if (o == oth.o) {
@@ -207,7 +207,7 @@ int relational::compare_same_type(const basic & other) const
 
 bool relational::match_same_type(const basic & other) const
 {
-       GINAC_ASSERT(is_exactly_of_type(other, relational));
+       GINAC_ASSERT(is_exactly_a<relational>(other));
        const relational &oth = static_cast<const relational &>(other);
 
        return o == oth.o;
@@ -263,13 +263,13 @@ relational::operator bool() const
        case not_equal:
                return !ex_to<numeric>(df).is_zero();
        case less:
-               return ex_to<numeric>(df)<_num0();
+               return ex_to<numeric>(df)<_num0;
        case less_or_equal:
-               return ex_to<numeric>(df)<=_num0();
+               return ex_to<numeric>(df)<=_num0;
        case greater:
-               return ex_to<numeric>(df)>_num0();
+               return ex_to<numeric>(df)>_num0;
        case greater_or_equal:
-               return ex_to<numeric>(df)>=_num0();
+               return ex_to<numeric>(df)>=_num0;
        default:
                throw(std::logic_error("invalid relational operator"));
        }