From dbbee667af247a941fc0be6319f639e9c7928276 Mon Sep 17 00:00:00 2001 From: rathod-sahaab Date: Thu, 2 Apr 2020 18:31:00 +0530 Subject: [PATCH] replaced throw() with noexcept --- STL_Extension/include/CGAL/Object.h | 2 +- STL_Extension/include/CGAL/Uncertain.h | 2 +- STL_Extension/include/CGAL/exceptions.h | 2 +- ...gular_triangulation_cell_base_with_weighted_circumcenter_3.h | 2 +- ...gular_triangulation_cell_base_with_weighted_circumcenter_3.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/STL_Extension/include/CGAL/Object.h b/STL_Extension/include/CGAL/Object.h index 5a901eb3110..b6efd83c3f0 100644 --- a/STL_Extension/include/CGAL/Object.h +++ b/STL_Extension/include/CGAL/Object.h @@ -161,7 +161,7 @@ assign(T& t, const Object& o) struct Bad_object_cast : public std::bad_cast { - virtual const char * what() const throw() + virtual const char * what() const noexcept { return "CGAL::bad_object_cast: " "failed conversion using CGAL::object_cast"; diff --git a/STL_Extension/include/CGAL/Uncertain.h b/STL_Extension/include/CGAL/Uncertain.h index a4290beb337..01a27cc696c 100644 --- a/STL_Extension/include/CGAL/Uncertain.h +++ b/STL_Extension/include/CGAL/Uncertain.h @@ -67,7 +67,7 @@ public: Uncertain_conversion_exception(const std::string &s) : std::range_error(s) {} - ~Uncertain_conversion_exception() throw() {} + ~Uncertain_conversion_exception() noexcept {} }; diff --git a/STL_Extension/include/CGAL/exceptions.h b/STL_Extension/include/CGAL/exceptions.h index a828503e7b3..92567623563 100644 --- a/STL_Extension/include/CGAL/exceptions.h +++ b/STL_Extension/include/CGAL/exceptions.h @@ -97,7 +97,7 @@ public: m_msg( msg) {} - ~Failure_exception() throw() {} + ~Failure_exception() noexcept {} //! the name of the library that issues this message. std::string library() const { return m_lib; } diff --git a/Triangulation_3/doc/Triangulation_3/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h b/Triangulation_3/doc/Triangulation_3/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h index caac4df2c52..24d0f9ed64e 100644 --- a/Triangulation_3/doc/Triangulation_3/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h +++ b/Triangulation_3/doc/Triangulation_3/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h @@ -68,7 +68,7 @@ Swaps the Regular_triangulation_cell_base_with_weighted_circumcenter_3 and `othe This function should be preferred to an assignment or the copy constructor if `other` is deleted thereafter. */ -void swap (Regular_triangulation_cell_base_with_weighted_circumcenter_3& other) throw(); +void swap (Regular_triangulation_cell_base_with_weighted_circumcenter_3& other) noexcept; /// @} diff --git a/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h b/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h index 54dbdc91e4f..b79b2111a05 100644 --- a/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h +++ b/Triangulation_3/include/CGAL/Regular_triangulation_cell_base_with_weighted_circumcenter_3.h @@ -132,7 +132,7 @@ public: return *weighted_circumcenter_; } - void swap (Regular_triangulation_cell_base_with_weighted_circumcenter_3& other) throw() + void swap (Regular_triangulation_cell_base_with_weighted_circumcenter_3& other) noexcept { std::swap(static_cast(*this), static_cast(other)); std::swap(weighted_circumcenter_, other.weighted_circumcenter_);