aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-20 11:35:52 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-20 11:35:52 +0200
commitc00321b94d6b952d59257b4a7373a1199e874d98 (patch)
treeac43d40f7fc5493894a3a87f31b389ba8a5f1bf4
parentf0424d682ef24530f901616611fd04f831c8b432 (diff)
Remove noexcept from semantic_version comparison operators
Since compare() is not noexcept.
-rw-r--r--libbutl/semantic-version.mxx12
1 files 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);
}