]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add missing exception specification to ExceptionBase::what.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Jan 2001 13:42:42 +0000 (13:42 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Jan 2001 13:42:42 +0000 (13:42 +0000)
git-svn-id: https://svn.dealii.org/branches/Branch-3-1@3626 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/exceptions.h
deal.II/base/source/exceptions.cc

index 5861028b04c743e20e044e18404246901e4a8646..5aa2a879b3cde960d5e36f465d044d88bf73bda7 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -333,7 +333,7 @@ class ExceptionBase : public exception
                                      *  @p{DeclException*} macros with the @p{throw}
                                      *  mechanism or the @p{AssertThrow} macro.
                                      */
-    virtual const char * what () const;
+    virtual const char * what () const throw ();
 
   protected:
                                     /**
index 2cff5a7e34215c0c77cd272a77448084317662c5..a67d5209abaeeb51a6f23afbc19ecadd92159186 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -32,7 +32,8 @@ void ExceptionBase::SetFields (const char* f,
                               const int l,
                               const char *func,
                               const char *c,
-                              const char *e) {
+                              const char *e)
+{
   file = f;
   line = l;
   function = func;
@@ -41,7 +42,9 @@ void ExceptionBase::SetFields (const char* f,
 };
 
 
-void ExceptionBase::PrintExcData (ostream &out) const {
+
+void ExceptionBase::PrintExcData (ostream &out) const
+{
   out << "An error occurred in line <" << line
       << "> of file <" << file
       << "> in function" << endl
@@ -54,12 +57,16 @@ void ExceptionBase::PrintExcData (ostream &out) const {
 };
 
 
-void ExceptionBase::PrintInfo (ostream &out) const {
+
+void ExceptionBase::PrintInfo (ostream &out) const
+{
   out << "(none)" << endl;
 };
 
 
-const char * ExceptionBase::what () const {
+
+const char * ExceptionBase::what () const throw ()
+{
                                   // have a place where to store the
                                   // description of the exception as a char *
                                   //

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.