]> www.ginac.de Git - ginac.git/blobdiff - ginac/fail.cpp
- added documentation for the idx, coloridx and lorentzidx classes
[ginac.git] / ginac / fail.cpp
index 37baafba9b593d1ac6669bd2b747d8d4281a2da1..bfacd79aa308fdd410b6b63fdc0b77a187331ce3 100644 (file)
@@ -4,7 +4,7 @@
  *  obsolete all this stuff ought to be replaced by exceptions. */
 
 /*
- *  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
@@ -45,7 +45,7 @@ fail::fail() : inherited(TINFO_fail)
 fail::~fail()
 {
        debugmsg("fail destructor",LOGLEVEL_DESTRUCT);
-       destroy(0);
+       destroy(false);
 }
 
 fail::fail(const fail & other)
@@ -58,7 +58,7 @@ const fail & fail::operator=(const fail & other)
 {
        debugmsg("fail operator=",LOGLEVEL_ASSIGNMENT);
        if (this != &other) {
-               destroy(1);
+               destroy(true);
                copy(other);
        }
        return *this;
@@ -160,7 +160,7 @@ int fail::compare_same_type(const basic & other) const
 //////////
 
 const fail some_fail;
-const type_info & typeid_fail=typeid(some_fail);
+const std::type_info & typeid_fail = typeid(some_fail);
 
 #ifndef NO_NAMESPACE_GINAC
 } // namespace GiNaC