#cmakedefine DEAL_II_WITH_UMFPACK
#cmakedefine DEAL_II_WITH_ZLIB
-// defined for backwards compatibility
+// defined for backwards compatibility with pre-C++11
#define DEAL_II_WITH_CXX11
+#define DEAL_II_NOEXCEPT noexcept
/***********************************************************************
* Compiler bugs:
#define DEAL_II_NAMESPACE_OPEN namespace dealii {
#define DEAL_II_NAMESPACE_CLOSE }
-
-/***********************************************************************
- * A macro that is used to mark function as not throwing any exceptions.
- * The appropriate way to do this in C++98 was to say
- * void foo () throw ();
- * but in C++11, this is now
- * void foo () noexcept;
- * Furthermore, the first of these two methods is being deprecated, so
- * we want to use the latter when possible.
- */
-
-#ifdef DEAL_II_WITH_CXX11
-# define DEAL_II_NOEXCEPT noexcept
-#else
-# define DEAL_II_NOEXCEPT throw()
-#endif
-
-
/***********************************************************************
* Two macros to guard external header includes.
*
/**
* Destructor.
*/
- virtual ~ExceptionBase () DEAL_II_NOEXCEPT;
+ virtual ~ExceptionBase () 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 DEAL_II_NOEXCEPT;
+ virtual const char *what() const noexcept;
/**
* Get exception name.
{ \
public: \
Exception (const std::string &msg = defaulttext) : arg (msg) {} \
- virtual ~Exception () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception () 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 () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception1 () 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 () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception2 () 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 () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception3 () 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 () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception4 () 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 () DEAL_II_NOEXCEPT {} \
+ virtual ~Exception5 () noexcept {} \
virtual void print_info (std::ostream &out) const { \
out << " " outsequence << std::endl; \
} \