From a011acc9b7e082c4824450cea6e55c707eba8cf5 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Tue, 3 Nov 2015 22:49:09 +0100 Subject: [PATCH] Fixing SE compilation --- src/util/se_util.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/util/se_util.hpp b/src/util/se_util.hpp index 8d884e5..f49c07f 100644 --- a/src/util/se_util.hpp +++ b/src/util/se_util.hpp @@ -11,10 +11,13 @@ // Macro that decide what to do in case of error #ifdef STOP_ON_ERROR #define ACTION_ON_ERROR(error) exit(1); +#define THROW noexcept(true) #elif defined(THROW_ON_ERROR) #define ACTION_ON_ERROR(error) if (!std::uncaught_exception()) throw error; +#define THROW noexcept(false) #else #define ACTION_ON_ERROR(error) +#define THROW noexcept(true) #endif -- GitLab