From: Wolfgang Bangerth Date: Tue, 31 Mar 1998 14:40:30 +0000 (+0000) Subject: Change variable name to a more reasonable one. X-Git-Tag: v8.0.0~23147 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5e667a5e054bf44540992d6bf6df8ef5d170bda;p=dealii.git Change variable name to a more reasonable one. git-svn-id: https://svn.dealii.org/trunk@107 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index d59a48796e..7599134993 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -27,7 +27,8 @@ */ class ExceptionBase { public: - ExceptionBase () {}; + ExceptionBase () : + file(""), line(0), function(""), cond(""), exc("") {}; /** * The constructor takes the file in which the * error happened, the line and the violated @@ -38,6 +39,29 @@ class ExceptionBase { const char* c, const char *e) : file(f), line(l), function(func), cond(c), exc(e) {}; + /** + * Copy constructor; don't know why, but + * gcc 2.8 likes to see this one, so we + * put it here. + */ + ExceptionBase (const ExceptionBase &e) : + file(e.file), line(e.line), function(e.function), + cond(e.cond), exc(e.exc) {}; + + /** + * Copy operator; don't know why, but + * gcc 2.8 likes to see this one, so we + * put it here. + */ + ExceptionBase & operator = (const ExceptionBase &e) { + file = e.file; + line = e.line; + function = e.function; + cond = e.cond; + exc = e.exc; + return *this; + }; + /** * Set the file name and line of where the * exception appeared as well as the violated @@ -105,10 +129,10 @@ void __IssueError (const char *file, int line, const char *function, const char *cond, - const char *exc, + const char *exc_name, exc e) { // Fill the fields of the exception object - e.SetFields (file, line, function, cond, exc); + e.SetFields (file, line, function, cond, exc_name); cerr << "--------------------------------------------------------" << endl; // print out general data