]> www.ginac.de Git - ginac.git/blobdiff - ginac/symbol.cpp
documentation update
[ginac.git] / ginac / symbol.cpp
index 94d01e4cfe8cefb74f302182c27f7cb511e6cef5..f099967cb095c349cba4a1b19320391c0b6fa2ad 100644 (file)
@@ -32,7 +32,7 @@
 
 namespace GiNaC {
 
-GINAC_IMPLEMENT_REGISTERED_CLASS_NO_CTORS(symbol, basic)
+GINAC_IMPLEMENT_REGISTERED_CLASS(symbol, basic)
 
 //////////
 // default ctor, dtor, copy ctor, assignment operator and helpers
@@ -53,7 +53,7 @@ void symbol::copy(const symbol & other)
        TeX_name = other.TeX_name;
        serial = other.serial;
        asexinfop = other.asexinfop;
-       ++asexinfop->refcount;
+       ++(asexinfop->refcount);
 }
 
 void symbol::destroy(bool call_parent)
@@ -70,11 +70,6 @@ void symbol::destroy(bool call_parent)
 
 // public
 
-symbol::symbol(const symbol & other)
-{
-       copy(other);
-}
-
 symbol::symbol(const std::string & initname) : inherited(TINFO_symbol)
 {
        name = initname;
@@ -137,11 +132,6 @@ void symbol::archive(archive_node &n) const
 
 // public
 
-basic *symbol::duplicate() const
-{
-       return new symbol(*this);
-}
-
 void symbol::print(const print_context & c, unsigned level) const
 {
        if (is_a<print_tree>(c)) {