From: abn Date: Mon, 21 Sep 2020 15:43:23 +0000 (+0200) Subject: replacing throw() by noexcept(true) X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3c0d9b928a3d7510f7cbd48ee07ee3deffd0958f;p=tools%2Fmedcoupling.git replacing throw() by noexcept(true) --- diff --git a/src/INTERP_KERNEL/Bases/InterpKernelException.cxx b/src/INTERP_KERNEL/Bases/InterpKernelException.cxx index fa96780e9..12ea0e69d 100644 --- a/src/INTERP_KERNEL/Bases/InterpKernelException.cxx +++ b/src/INTERP_KERNEL/Bases/InterpKernelException.cxx @@ -32,11 +32,11 @@ INTERP_KERNEL::Exception::Exception(const char *reason, const char *file, int li { } -INTERP_KERNEL::Exception::~Exception() throw () +INTERP_KERNEL::Exception::~Exception() noexcept(true) { } -const char *INTERP_KERNEL::Exception::what() const throw() +const char *INTERP_KERNEL::Exception::what() const noexcept(true) { return _reason.c_str(); } diff --git a/src/INTERP_KERNEL/Bases/InterpKernelException.hxx b/src/INTERP_KERNEL/Bases/InterpKernelException.hxx index 6fa0ca29f..c8ec7bf0c 100644 --- a/src/INTERP_KERNEL/Bases/InterpKernelException.hxx +++ b/src/INTERP_KERNEL/Bases/InterpKernelException.hxx @@ -34,8 +34,8 @@ namespace INTERP_KERNEL INTERPKERNEL_EXPORT Exception(const char *reason); INTERPKERNEL_EXPORT Exception(const std::string& reason); INTERPKERNEL_EXPORT Exception(const char *reason, const char *file, int line); - INTERPKERNEL_EXPORT ~Exception() throw (); - INTERPKERNEL_EXPORT const char *what() const throw(); + INTERPKERNEL_EXPORT ~Exception() noexcept(true); + INTERPKERNEL_EXPORT const char *what() const noexcept(true); protected: std::string _reason; }; diff --git a/src/MEDCoupling/MCAuto.hxx b/src/MEDCoupling/MCAuto.hxx index 7e92f0653..bb2c6e752 100644 --- a/src/MEDCoupling/MCAuto.hxx +++ b/src/MEDCoupling/MCAuto.hxx @@ -92,7 +92,7 @@ namespace MEDCoupling } template - typename MEDCoupling::MCAuto DynamicCast(typename MEDCoupling::MCAuto& autoSubPtr) throw() + typename MEDCoupling::MCAuto DynamicCast(typename MEDCoupling::MCAuto& autoSubPtr) noexcept(true) { T *subPtr(autoSubPtr); U *ptr(dynamic_cast(subPtr));