]> www.ginac.de Git - ginac.git/blobdiff - ginac/add.cpp
- removed the compatiblity stuff for broken slink linkers.
[ginac.git] / ginac / add.cpp
index 40ccc23f526553cef1a3849fae2ce39eff337702..2b1c5d77ab84a3a54f2d089e406a037b5d09b553 100644 (file)
@@ -50,7 +50,7 @@ add::add()
 add::~add()
 {
        debugmsg("add destructor",LOGLEVEL_DESTRUCT);
-       destroy(0);
+       destroy(false);
 }
 
 add::add(const add & other)
@@ -63,7 +63,7 @@ const add & add::operator=(const add & other)
 {
        debugmsg("add operator=",LOGLEVEL_ASSIGNMENT);
        if (this != &other) {
-               destroy(1);
+               destroy(true);
                copy(other);
        }
        return *this;
@@ -539,9 +539,7 @@ ex add::expand(unsigned options) const
        if (vp==0)
                return *this;
        
-       return (new add(vp,overall_coeff))->
-               setflag(status_flags::expanded |
-                               status_flags::dynallocated);
+       return (new add(vp,overall_coeff))->setflag(status_flags::expanded | status_flags::dynallocated);
 }
 
 //////////
@@ -569,7 +567,7 @@ unsigned add::precedence = 40;
 //////////
 
 const add some_add;
-const type_info & typeid_add = typeid(some_add);
+const std::type_info & typeid_add = typeid(some_add);
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC