From c00321b94d6b952d59257b4a7373a1199e874d98 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Aug 2018 11:35:52 +0200 Subject: Remove noexcept from semantic_version comparison operators Since compare() is not noexcept. --- libbutl/semantic-version.mxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libbutl/semantic-version.mxx b/libbutl/semantic-version.mxx index b095f01..c50a290 100644 --- a/libbutl/semantic-version.mxx +++ b/libbutl/semantic-version.mxx @@ -148,37 +148,37 @@ LIBBUTL_MODEXPORT namespace butl // NOTE: comparison operators take the build component into account. // inline bool - operator< (const semantic_version& x, const semantic_version& y) noexcept + operator< (const semantic_version& x, const semantic_version& y) { return x.compare (y) < 0; } inline bool - operator> (const semantic_version& x, const semantic_version& y) noexcept + operator> (const semantic_version& x, const semantic_version& y) { return x.compare (y) > 0; } inline bool - operator== (const semantic_version& x, const semantic_version& y) noexcept + operator== (const semantic_version& x, const semantic_version& y) { return x.compare (y) == 0; } inline bool - operator<= (const semantic_version& x, const semantic_version& y) noexcept + operator<= (const semantic_version& x, const semantic_version& y) { return x.compare (y) <= 0; } inline bool - operator>= (const semantic_version& x, const semantic_version& y) noexcept + operator>= (const semantic_version& x, const semantic_version& y) { return x.compare (y) >= 0; } inline bool - operator!= (const semantic_version& x, const semantic_version& y) noexcept + operator!= (const semantic_version& x, const semantic_version& y) { return !(x == y); } -- cgit v1.1