]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return invalid value instead of calling abort. Also throw an exception.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 10 Jan 2001 16:45:22 +0000 (16:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 10 Jan 2001 16:45:22 +0000 (16:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@3631 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/thread_management.cc

index 0ce3df3d1898666f7333dd5bb0dc4edd1735510e..e761faf6583a79f194426b3fac5fdf83007c0593 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2000 by the deal.II authors
+//    Copyright (C) 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
@@ -101,8 +101,11 @@ namespace Threads
   const FunEncapsulation &
   FunEncapsulation::operator = (const FunEncapsulation &/*fun_data*/)
   {
-                                    // this is not implemented at present
-    abort ();
+                                    // this is not implemented at
+                                    // present. return dummy value
+                                    // instead
+    Assert (false, ExcNotImplemented());
+    return *static_cast<const FunEncapsulation *>(0);
   };
 
 

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.