/**
* Destructor.
*/
- virtual ~ExceptionBase () throw();
+ virtual ~ExceptionBase () DEAL_II_NOEXCEPT;
/**
* Set the file name and line of where the exception appeared as well as the
/**
* Override the standard function that returns the description of the error.
*/
- virtual const char *what() const throw();
+ virtual const char *what() const DEAL_II_NOEXCEPT;
/**
* Get exception name.
{ \
public: \
Exception (const std::string &msg = defaulttext) : arg (msg) {} \
- virtual ~Exception () throw () {} \
+ virtual ~Exception () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out << arg << std::endl; \
} \
class Exception1 : public dealii::ExceptionBase { \
public: \
Exception1 (const type1 a1) : arg1 (a1) {} \
- virtual ~Exception1 () throw () {} \
+ virtual ~Exception1 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
} \
public: \
Exception2 (const type1 a1, const type2 a2) : \
arg1 (a1), arg2(a2) {} \
- virtual ~Exception2 () throw () {} \
+ virtual ~Exception2 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
} \
public: \
Exception3 (const type1 a1, const type2 a2, const type3 a3) : \
arg1 (a1), arg2(a2), arg3(a3) {} \
- virtual ~Exception3 () throw () {} \
+ virtual ~Exception3 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
} \
Exception4 (const type1 a1, const type2 a2, \
const type3 a3, const type4 a4) : \
arg1 (a1), arg2(a2), arg3(a3), arg4(a4) {} \
- virtual ~Exception4 () throw () {} \
+ virtual ~Exception4 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
} \
Exception5 (const type1 a1, const type2 a2, const type3 a3, \
const type4 a4, const type5 a5) : \
arg1 (a1), arg2(a2), arg3(a3), arg4(a4), arg5(a5) {} \
- virtual ~Exception5 () throw () {} \
+ virtual ~Exception5 () DEAL_II_NOEXCEPT {} \
virtual void print_info (std::ostream &out) const { \
out outsequence << std::endl; \
} \
// ---------------------------------------------------------------------
//
-// Copyright (C) 1998 - 2014 by the deal.II authors
+// Copyright (C) 1998 - 2016 by the deal.II authors
//
// This file is part of the deal.II library.
//
-ExceptionBase::~ExceptionBase () throw ()
+ExceptionBase::~ExceptionBase () DEAL_II_NOEXCEPT
{
free (stacktrace); // free(NULL) is allowed
stacktrace = NULL;
#endif
}
-const char *ExceptionBase::what() const throw()
+const char *ExceptionBase::what() const DEAL_II_NOEXCEPT
{
// If no error c_string was generated so far, do it now:
if (what_str == "")
template<int dim, int spacedim>
-Triangulation<dim, spacedim>::DistortedCellList::~DistortedCellList () throw ()
+Triangulation<dim, spacedim>::DistortedCellList::~DistortedCellList () DEAL_II_NOEXCEPT
{
// don't do anything here. the compiler will automatically convert
// any exceptions created by the destructors of the member variables
- // into abort() in order to satisfy the throw() specification
+ // into abort() in order to satisfy the throw()/noexcept
+ // specification
}