aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorakhropov <akhropov@yandex-team.com>2024-11-28 21:47:27 +0300
committerakhropov <akhropov@yandex-team.com>2024-11-28 21:58:47 +0300
commit96631af34b553cdcf7cd01849150e5c5c2419e33 (patch)
tree0e5b5e88dea8644752208dfb7ca530d16276e6e3 /util
parentfc646bb39725ebf129c72986908350b76f502e98 (diff)
downloadydb-96631af34b553cdcf7cd01849150e5c5c2419e33.tar.gz
Remove noexcept from operator== because it is not guaranteed that operator== for elements is noexcept.
commit_hash:2457980ced7a2f91cefec1ea20ff13bfb5c7c2cf
Diffstat (limited to 'util')
-rw-r--r--util/generic/array_ref.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/generic/array_ref.h b/util/generic/array_ref.h
index e602eddec3..fb9ab0bcf1 100644
--- a/util/generic/array_ref.h
+++ b/util/generic/array_ref.h
@@ -77,7 +77,7 @@ public:
}
template <class TT, typename = std::enable_if_t<std::is_same<std::remove_const_t<T>, std::remove_const_t<TT>>::value>>
- bool operator==(const TArrayRef<TT>& other) const noexcept {
+ bool operator==(const TArrayRef<TT>& other) const {
return (S_ == other.size()) && std::equal(begin(), end(), other.begin());
}