From c37f2fec480e346ba2afd6439e43408574ba5585 Mon Sep 17 00:00:00 2001
From: ralfulrich <ralf.ulrich@kit.edu>
Date: Thu, 7 Jan 2021 13:43:50 +0100
Subject: [PATCH] noexcept

---
 corsika/detail/framework/utility/CorsikaFenvFallback.inl | 4 ++--
 corsika/detail/framework/utility/CorsikaFenvOSX.inl      | 4 ++--
 corsika/framework/utility/CorsikaFenv.hpp                | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/corsika/detail/framework/utility/CorsikaFenvFallback.inl b/corsika/detail/framework/utility/CorsikaFenvFallback.inl
index 473b6a279..61e32daeb 100644
--- a/corsika/detail/framework/utility/CorsikaFenvFallback.inl
+++ b/corsika/detail/framework/utility/CorsikaFenvFallback.inl
@@ -12,7 +12,7 @@
 extern "C" {
 #warning No enabling/disabling of floating point exceptions - platform needs better implementation
 
-inline int feenableexcept(int /*excepts*/) throw() { return -1; }
+inline int feenableexcept(int /*excepts*/) noexcept { return -1; }
 
-inline int fedisableexcept(int /*excepts*/) throw() { return -1; }
+inline int fedisableexcept(int /*excepts*/) noexcept { return -1; }
 }
diff --git a/corsika/detail/framework/utility/CorsikaFenvOSX.inl b/corsika/detail/framework/utility/CorsikaFenvOSX.inl
index 5b8ed554d..b57a6973d 100644
--- a/corsika/detail/framework/utility/CorsikaFenvOSX.inl
+++ b/corsika/detail/framework/utility/CorsikaFenvOSX.inl
@@ -28,7 +28,7 @@
 
 extern "C" {
 
-int feenableexcept(int excepts) throw() {
+int feenableexcept(int excepts) noexcept {
   static fenv_t fenv;
   int new_excepts = excepts & FE_ALL_EXCEPT;
   // previous masks
@@ -44,7 +44,7 @@ int feenableexcept(int excepts) throw() {
   return fesetenv(&fenv) ? -1 : old_excepts;
 }
 
-int fedisableexcept(int excepts) throw() {
+int fedisableexcept(int excepts) noexcept {
   static fenv_t fenv;
   int new_excepts = excepts & FE_ALL_EXCEPT;
   // all previous masks
diff --git a/corsika/framework/utility/CorsikaFenv.hpp b/corsika/framework/utility/CorsikaFenv.hpp
index 13482b988..858f3e7e3 100644
--- a/corsika/framework/utility/CorsikaFenv.hpp
+++ b/corsika/framework/utility/CorsikaFenv.hpp
@@ -16,8 +16,8 @@
  */
 extern "C" {
 
-int feenableexcept(int excepts) throw();
-int fedisableexcept(int excepts) throw();
+int feenableexcept(int excepts) noexcept;
+int fedisableexcept(int excepts) noexcept;
 }
 
 #ifdef CORSIKA_HAS_FEENABLEEXCEPT
-- 
GitLab