]> www.ginac.de Git - ginac.git/blobdiff - ginac/fail.cpp
- put everything in "GiNaC" namespace
[ginac.git] / ginac / fail.cpp
index c9d0e392dc34b1d466440bbad00b343dab16fc31..e5800a388c629a669841427bae8c9ac37fa5ce1a 100644 (file)
@@ -1,8 +1,9 @@
 /** @file fail.cpp
  *
  *  Implementation of class signaling failure of operation. Considered
- *  obsolete all this stuff ought to be replaced by exceptions.
- *
+ *  obsolete all this stuff ought to be replaced by exceptions. */
+
+/*
  *  GiNaC Copyright (C) 1999 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-#include "ginac.h"
+#include "fail.h"
+#include "debugmsg.h"
+
+namespace GiNaC {
 
 //////////
 // default constructor, destructor, copy constructor assignment operator and helpers
@@ -28,7 +32,7 @@
 
 // public
 
-fail::fail() : basic(TINFO_FAIL)
+fail::fail() : basic(TINFO_fail)
 {
     debugmsg("fail default constructor",LOGLEVEL_CONSTRUCT);
 }
@@ -119,3 +123,4 @@ int fail::compare_same_type(basic const & other) const
 const fail some_fail;
 type_info const & typeid_fail=typeid(some_fail);
 
+} // namespace GiNaC