]> www.ginac.de Git - ginac.git/blobdiff - ginac/matrix.cpp
Fix most remaining GCC compiler warnings.
[ginac.git] / ginac / matrix.cpp
index 1b5f8edf7f418b4b773c39887c657c335dd0fa9a..871c3f15d1c5f433238b6f5a3b354d1f17ef1ea2 100644 (file)
@@ -81,6 +81,11 @@ matrix::matrix(unsigned r, unsigned c, const exvector & m2)
 {
        setflag(status_flags::not_shareable);
 }
+matrix::matrix(unsigned r, unsigned c, exvector && m2)
+  : row(r), col(c), m(std::move(m2))
+{
+       setflag(status_flags::not_shareable);
+}
 
 /** Construct matrix from (flat) list of elements. If the list has fewer
  *  elements than the matrix, the remaining matrix elements are set to zero.