]> www.ginac.de Git - ginac.git/blobdiff - ginac/polynomial/euclid_gcd_wrap.h
Happy New Year!
[ginac.git] / ginac / polynomial / euclid_gcd_wrap.h
index f85dc4718b3c9afe5cbed974f5d7f39da2c5d63b..ac6c4526084837fec8376a4fddb7ec152375924e 100644 (file)
@@ -3,7 +3,7 @@
  *  Euclidean GCD and supporting functions. */
 
 /*
- *  GiNaC Copyright (C) 1999-2010 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
@@ -59,7 +59,7 @@ static ex umodpoly2ex(const umodpoly& a, const ex& var, const long p)
                const ex term = numeric(c)*power(var, i);
                ev.push_back(term);
        }
-       ex ret = (new add(ev))->setflag(status_flags::dynallocated);
+       ex ret = dynallocate<add>(ev);
        return ret;
 }