]> www.ginac.de Git - ginac.git/blobdiff - ginac/ncmul.cpp
Use C++11 'auto' and range-based for loops where possible.
[ginac.git] / ginac / ncmul.cpp
index 359ae81ca9a999139e713dfbfda09087c408fb22..103e7d6d7f2a13734aebc38e7156a973f2ec1c0b 100644 (file)
@@ -521,7 +521,7 @@ unsigned ncmul::return_type() const
        bool all_commutative = true;
        exvector::const_iterator noncommutative_element; // point to first found nc element
 
-       exvector::const_iterator i = seq.begin(), end = seq.end();
+       auto i = seq.begin(), end = seq.end();
        while (i != end) {
                unsigned rt = i->return_type();
                if (rt == return_types::noncommutative_composite)