[beast: 3/4] BSE: use noexcept instead of dynamic exception specifications



commit cd27b8d03fe3ebc303257bcef2487e7ed07359ba
Author: Tim Janik <timj gnu org>
Date:   Wed Oct 26 01:54:51 2016 +0200

    BSE: use noexcept instead of dynamic exception specifications
    
    Signed-off-by: Tim Janik <timj gnu org>

 bse/bsecxxutils.hh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/bse/bsecxxutils.hh b/bse/bsecxxutils.hh
index 1830d77..fd000a1 100644
--- a/bse/bsecxxutils.hh
+++ b/bse/bsecxxutils.hh
@@ -70,20 +70,20 @@ private:
 struct InvalidArgument2 : Exception {
   const char *item;
   InvalidArgument2 (const char *where, const char *item) : Exception (where), item (item) {};
-  const char* what() const throw() { return g_intern_strconcat ("invalid argument: ", item, NULL); }
+  const char* what() const noexcept { return g_intern_strconcat ("invalid argument: ", item, NULL); }
 };
 #define InvalidArgument(WHAT)   InvalidArgument2 (__func__, #WHAT)
 struct WrongTypeGValue : Exception {
   WrongTypeGValue (const char *where) : Exception (where) {};
-  const char* what() const throw() { return "GValue contains wrong type for this kind of use"; }
+  const char* what() const noexcept { return "GValue contains wrong type for this kind of use"; }
 };
 struct DontReach : Exception {
   DontReach (const char *where) : Exception (where) {};
-  const char* what() const throw() { return "Code section should not be reached"; }
+  const char* what() const noexcept { return "Code section should not be reached"; }
 };
 struct InvalidConnection : Exception {
   InvalidConnection (const char *where) : Exception (where) {};
-  const char* what() const throw() { return "Function to be connected has invalid signature"; }
+  const char* what() const noexcept { return "Function to be connected has invalid signature"; }
 };
 
 /* --- records & sequences --- */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]