From e28bf731dc5340e3cfa86bd5f11dfcb7ec49c20e Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Mon, 20 May 2024 12:43:46 +0200 Subject: [PATCH] convert_hex_to_binary(): Remove exception specification gcc complained: "ISO C++17 does not allow dynamic exception specifications" Also remove it in ensure_indent_level() static function. --- src/stringfunc.cpp | 1 - src/stringfunc.hxx | 2 +- src/tracefunc.cpp | 1 - 3 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/stringfunc.cpp b/src/stringfunc.cpp index 7108bc9..c6050f4 100644 --- a/src/stringfunc.cpp +++ b/src/stringfunc.cpp @@ -498,7 +498,6 @@ std::string convert_binary_to_hex( std::string convert_hex_to_binary( const std::string& str ) -throw (std::runtime_error) { std::string result; char c= 0; diff --git a/src/stringfunc.hxx b/src/stringfunc.hxx index 06d85f9..d8f286d 100644 --- a/src/stringfunc.hxx +++ b/src/stringfunc.hxx @@ -185,7 +185,7 @@ std::string join_string( std::string convert_binary_to_hex(const std::string&str, bool upper_case_digits= false); -std::string convert_hex_to_binary(const std::string& str) throw(std::runtime_error); +std::string convert_hex_to_binary(const std::string& str); /* diff --git a/src/tracefunc.cpp b/src/tracefunc.cpp index bad392d..a4e26b6 100644 --- a/src/tracefunc.cpp +++ b/src/tracefunc.cpp @@ -90,7 +90,6 @@ static PerThreadContainer *TLS_get_container() throw () * @param level the desired indent level. */ static void ensure_indent_level(PerThreadContainer *per_thread, unsigned int level) - throw(std::length_error, std::bad_alloc) { // First initialization? if (per_thread->indents.empty()) -- 1.7.1