]> www.ginac.de Git - ginac.git/blobdiff - ginac/pseries.cpp
Update reference to Robert C. Martin's "Acyclic Visitor" paper.
[ginac.git] / ginac / pseries.cpp
index 2d0b7adc24ccbd95ef531ea1ce637466941fdaa5..899a8599d8f33c4cc7485971defb5bae2ac3af84 100644 (file)
@@ -281,7 +281,7 @@ int pseries::compare_same_type(const basic & other) const
                return cmpval;
        
        // ...and if that failed the individual elements
-       epvector::const_iterator it = seq.begin(), o_it = o.seq.begin();
+       auto it = seq.begin(), o_it = o.seq.begin();
        while (it!=seq.end() && o_it!=o.seq.end()) {
                cmpval = it->compare(*o_it);
                if (cmpval)
@@ -410,14 +410,8 @@ ex pseries::eval() const
 }
 
 /** Evaluate coefficients numerically. */
-ex pseries::evalf(int level) const
+ex pseries::evalf() const
 {
-       if (level == 1)
-               return *this;
-       
-       if (level == -max_recursion_level)
-               throw (std::runtime_error("pseries::evalf(): recursion limit exceeded"));
-       
        // Construct a new series with evaluated coefficients
        epvector new_seq;
        new_seq.reserve(seq.size());