From abc91382bf34e7effce6b6392a4a816cf3b97e29 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 16 Dec 2020 20:07:02 +0300 Subject: [PATCH] #18963 Change throw() -> noexcept --- src/bases/BL_Exception.cxx | 4 ++-- src/bases/BL_Exception.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bases/BL_Exception.cxx b/src/bases/BL_Exception.cxx index 5f867e9..6d659dd 100644 --- a/src/bases/BL_Exception.cxx +++ b/src/bases/BL_Exception.cxx @@ -23,12 +23,12 @@ BL::Exception::Exception(const std::string& what):_what(what) { } -BL::Exception::~Exception() throw () +BL::Exception::~Exception() noexcept { } const char * -BL::Exception::what( void ) const throw () +BL::Exception::what( void ) const noexcept { return _what.c_str(); } diff --git a/src/bases/BL_Exception.hxx b/src/bases/BL_Exception.hxx index c93414e..688cfcb 100644 --- a/src/bases/BL_Exception.hxx +++ b/src/bases/BL_Exception.hxx @@ -40,8 +40,8 @@ namespace BL std::string _what; public: Exception(const std::string& what); - const char *what( void ) const throw (); - virtual ~Exception() throw (); + const char *what( void ) const noexcept; + virtual ~Exception() noexcept; }; } -- 2.39.2