]> www.ginac.de Git - ginac.git/blobdiff - ginac/mul.cpp
Add rvalue reference ctors from epvectors for add, mul.
[ginac.git] / ginac / mul.cpp
index 36960c0a8b63d5300f61ee842e5dd1280605d2d6..3f2d5cdbfc06f8cade28ce9dc8b4ade995a68caa 100644 (file)
@@ -89,6 +89,13 @@ mul::mul(const epvector & v, const ex & oc, bool do_index_renaming)
        GINAC_ASSERT(is_canonical());
 }
 
+mul::mul(epvector && vp)
+{
+       overall_coeff = _ex1;
+       construct_from_epvector(std::move(vp));
+       GINAC_ASSERT(is_canonical());
+}
+
 mul::mul(epvector && vp, const ex & oc, bool do_index_renaming)
 {
        overall_coeff = oc;