/** @file fail.cpp
*
* Implementation of class signaling failure of operation. Considered
- * obsolete all this stuff ought to be replaced by exceptions. */
+ * somewhat obsolete (most of this can be replaced by exceptions). */
/*
- * GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ * GiNaC Copyright (C) 1999-2004 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
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <iostream>
+
#include "fail.h"
-#include "print.h"
#include "archive.h"
-#include "debugmsg.h"
#include "utils.h"
namespace GiNaC {
-GINAC_IMPLEMENT_REGISTERED_CLASS(fail, basic)
+GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(fail, basic,
+ print_func<print_context>(&fail::do_print).
+ print_func<print_tree>(&fail::do_print_tree))
//////////
-// default ctor, dtor, copy ctor assignment operator and helpers
+// default constructor
//////////
-DEFAULT_CTORS(fail)
+DEFAULT_CTOR(fail)
//////////
// archiving
DEFAULT_ARCHIVING(fail)
//////////
-// functions overriding virtual functions from bases classes
+// functions overriding virtual functions from base classes
//////////
DEFAULT_COMPARE(fail)