replaced throw() with noexcept

This commit is contained in:
rathod-sahaab 2020-04-02 18:31:00 +05:30
parent 23aca30a04
commit dbbee667af
5 changed files with 5 additions and 5 deletions

View File

@ -161,7 +161,7 @@ assign(T& t, const Object& o)
struct Bad_object_cast struct Bad_object_cast
: public std::bad_cast : public std::bad_cast
{ {
virtual const char * what() const throw() virtual const char * what() const noexcept
{ {
return "CGAL::bad_object_cast: " return "CGAL::bad_object_cast: "
"failed conversion using CGAL::object_cast"; "failed conversion using CGAL::object_cast";

View File

@ -67,7 +67,7 @@ public:
Uncertain_conversion_exception(const std::string &s) Uncertain_conversion_exception(const std::string &s)
: std::range_error(s) {} : std::range_error(s) {}
~Uncertain_conversion_exception() throw() {} ~Uncertain_conversion_exception() noexcept {}
}; };

View File

@ -97,7 +97,7 @@ public:
m_msg( msg) m_msg( msg)
{} {}
~Failure_exception() throw() {} ~Failure_exception() noexcept {}
//! the name of the library that issues this message. //! the name of the library that issues this message.
std::string library() const { return m_lib; } std::string library() const { return m_lib; }

View File

@ -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 This function should be preferred to an assignment or the copy constructor
if `other` is deleted thereafter. 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;
/// @} /// @}

View File

@ -132,7 +132,7 @@ public:
return *weighted_circumcenter_; 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<Cb&>(*this), static_cast<Cb&>(other)); std::swap(static_cast<Cb&>(*this), static_cast<Cb&>(other));
std::swap(weighted_circumcenter_, other.weighted_circumcenter_); std::swap(weighted_circumcenter_, other.weighted_circumcenter_);