From: Wolfgang Bangerth Date: Wed, 10 Jan 2001 16:45:22 +0000 (+0000) Subject: Return invalid value instead of calling abort. Also throw an exception. X-Git-Tag: v8.0.0~19833 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d764727f68ac788673e4c6cd644391f363c74d67;p=dealii.git Return invalid value instead of calling abort. Also throw an exception. git-svn-id: https://svn.dealii.org/trunk@3631 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/thread_management.cc b/deal.II/base/source/thread_management.cc index 0ce3df3d18..e761faf658 100644 --- a/deal.II/base/source/thread_management.cc +++ b/deal.II/base/source/thread_management.cc @@ -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(0); };