]> www.ginac.de Git - ginac.git/blobdiff - ginac/idx.cpp
Finalize 1.7.6 release.
[ginac.git] / ginac / idx.cpp
index 601c339b9fb745e203073426fb0742bf1164e7c0..e50fac4062a0e771a8d711962e69203e8f00f9e0 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's indices. */
 
 /*
- *  GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -373,7 +373,7 @@ ex idx::evalf() const
 ex idx::subs(const exmap & m, unsigned options) const
 {
        // First look for index substitutions
-       exmap::const_iterator it = m.find(*this);
+       auto it = m.find(*this);
        if (it != m.end()) {
 
                // Substitution index->index
@@ -541,7 +541,7 @@ void find_free_and_dummy(exvector::const_iterator it, exvector::const_iterator i
 
        // Find dummy pairs and free indices
        it = v.begin(); itend = v.end();
-       exvector::const_iterator last = it++;
+       auto last = it++;
        while (it != itend) {
                if (is_dummy_pair(*it, *last)) {
                        out_dummy.push_back(*last);