]> www.ginac.de Git - ginac.git/blobdiff - ginac/color.cpp
Happy New Year!
[ginac.git] / ginac / color.cpp
index 7081998d05d14614589e84d0161ebec934f685af..f8cbca07bd369a4cc72b4fbaf3decf702bc00e05 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's color (SU(3) Lie algebra) objects. */
 
 /*
- *  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
@@ -332,7 +332,7 @@ bool su3t::contract_with(exvector::iterator self, exvector::iterator other, exve
 
                // T.a S T.a = 1/2 Tr(S) - 1/6 S
                } else {
-                       exvector::iterator it = self + 1;
+                       auto it = self + 1;
                        while (it != other) {
                                if (!is_a<color>(*it)) {
                                        return false;