]> www.ginac.de Git - ginac.git/blobdiff - ginac/normal.cpp
Use C++11 'auto' and range-based for loops where possible.
[ginac.git] / ginac / normal.cpp
index 81841e0f7f847de7d8e706d3a74deb1744ac3852..fe749c2b4e8606461d6596cbf7c8f7d520ccaa65 100644 (file)
@@ -1548,7 +1548,7 @@ ex gcd(const ex &a, const ex &b, ex *ca, ex *cb, bool check_args, unsigned optio
 
        // The symbol with least degree which is contained in both polynomials
        // is our main variable
-       sym_desc_vec::iterator vari = sym_stats.begin();
+       auto vari = sym_stats.begin();
        while ((vari != sym_stats.end()) && 
               (((vari->ldeg_b == 0) && (vari->deg_b == 0)) ||
                ((vari->ldeg_a == 0) && (vari->deg_a == 0))))