]> www.ginac.de Git - ginac.git/blobdiff - ginac/matrix.cpp
Avoid some explicit copying of STL containers.
[ginac.git] / ginac / matrix.cpp
index 52a1f1b423cd4b3eafea7a3b8c6d8a185565d26c..2217bae85a3f4e64816d98bb4e70945959eba1c3 100644 (file)
@@ -1221,9 +1221,8 @@ ex matrix::determinant_minor() const
                                for (unsigned j=fc; j<n-c; ++j)
                                        Pkey[j] = Pkey[j-1]+1;
                } while(fc);
-               // next column, so change the role of A and B:
-               A.swap(B);
-               B.clear();
+               // next column, clear B and change the role of A and B:
+               A = std::move(B);
        }
        
        return det;