X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=ginac%2Ffail.h;h=cda726f7e4100367e5bb9a8ff0cc6de32217db63;hb=f8b3c08fd7a5aabe7471c4dfb635d134ee4d8ef3;hp=2e88c8a43927545cead80e173a13406b364f6673;hpb=83a7ee99a947cbbf331018b803ad6be43a9ccd45;p=ginac.git diff --git a/ginac/fail.h b/ginac/fail.h index 2e88c8a4..cda726f7 100644 --- a/ginac/fail.h +++ b/ginac/fail.h @@ -4,7 +4,7 @@ * somewhat obsolete (most of this can be replaced by exceptions). */ /* - * GiNaC Copyright (C) 1999-2008 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2015 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 @@ -21,10 +21,11 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __GINAC_FAIL_H__ -#define __GINAC_FAIL_H__ +#ifndef GINAC_FAIL_H +#define GINAC_FAIL_H #include "basic.h" +#include "archive.h" namespace GiNaC { @@ -34,13 +35,14 @@ class fail : public basic // functions overriding virtual functions from base classes protected: - unsigned return_type() const { return return_types::noncommutative_composite; }; + unsigned return_type() const override { return return_types::noncommutative_composite; }; // non-virtual functions in this class protected: void do_print(const print_context & c, unsigned level) const; }; +GINAC_DECLARE_UNARCHIVER(fail); } // namespace GiNaC -#endif // ndef __GINAC_FAIL_H__ +#endif // ndef GINAC_FAIL_H