]> www.ginac.de Git - ginac.git/blobdiff - ginac/isospin.cpp
- See if __GNUC__ < 2.97 before using std::vector<..,malloc_alloc>. Sorry,
[ginac.git] / ginac / isospin.cpp
index fafdaec02af0ae8a4ad8a33bf7d1c41f0c39fc69..cd6d45cadd47d6b6abcb80880000bf10987e22a3 100644 (file)
@@ -4,7 +4,7 @@
  *  No real implementation yet, to be done.     */
 
 /*
- *  GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2001 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
@@ -54,7 +54,7 @@ isospin::isospin()
 isospin::~isospin()
 {
        debugmsg("isospin destructor",LOGLEVEL_DESTRUCT);
-       destroy(0);
+       destroy(false);
 }
 
 isospin::isospin(const isospin & other)
@@ -67,7 +67,7 @@ const isospin & isospin::operator=(const isospin & other)
 {
        debugmsg("isospin operator=",LOGLEVEL_ASSIGNMENT);
        if (this != &other) {
-               destroy(1);
+               destroy(true);
                copy(other);
        }
        return *this;
@@ -207,9 +207,8 @@ ex isospin::simplify_ncmul(const exvector & v) const
 
 unsigned isospin::calchash(void) const
 {
-       hashvalue=golden_ratio_hash(golden_ratio_hash(0x55555556U ^
-                                                                                                 golden_ratio_hash(tinfo_key) ^
-                                                                                                 serial));
+       hashvalue = golden_ratio_hash(golden_ratio_hash(0x55555556U ^
+                   golden_ratio_hash(tinfo_key) ^ serial));
        setflag(status_flags::hash_calculated);
        return hashvalue;
 }
@@ -250,7 +249,7 @@ unsigned isospin::next_serial=0;
 //////////
 
 const isospin some_isospin;
-const type_info & typeid_isospin=typeid(some_isospin);
+const std::type_info & typeid_isospin = typeid(some_isospin);
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC