]> www.ginac.de Git - ginac.git/blobdiff - ginac/coloridx.cpp
- See if __GNUC__ < 2.97 before using std::vector<..,malloc_alloc>. Sorry,
[ginac.git] / ginac / coloridx.cpp
index 261365c7751e72f1daaaf0e499e441502df14a70..a227ea9b32f7bdceebbb6c7a659aea3705ab40c9 100644 (file)
@@ -3,7 +3,7 @@
  *  Implementation of GiNaC's color indices. */
 
 /*
- *  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
@@ -50,7 +50,7 @@ coloridx::coloridx()
 coloridx::~coloridx() 
 {
        debugmsg("coloridx destructor",LOGLEVEL_DESTRUCT);
-       destroy(0);
+       destroy(false);
 }
 
 coloridx::coloridx(const coloridx & other)
@@ -63,7 +63,7 @@ const coloridx & coloridx::operator=(const coloridx & other)
 {
        debugmsg("coloridx operator=",LOGLEVEL_ASSIGNMENT);
        if (this != &other) {
-               destroy(1);
+               destroy(true);
                copy(other);
        }
        return *this;
@@ -239,7 +239,7 @@ bool coloridx::info(unsigned inf) const
 //////////
 
 const coloridx some_coloridx;
-const type_info & typeid_coloridx=typeid(some_coloridx);
+const std::type_info & typeid_coloridx = typeid(some_coloridx);
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC