diff options
author | akhropov <akhropov@yandex-team.com> | 2024-11-28 21:47:27 +0300 |
---|---|---|
committer | akhropov <akhropov@yandex-team.com> | 2024-11-28 21:58:47 +0300 |
commit | 96631af34b553cdcf7cd01849150e5c5c2419e33 (patch) | |
tree | 0e5b5e88dea8644752208dfb7ca530d16276e6e3 /util | |
parent | fc646bb39725ebf129c72986908350b76f502e98 (diff) | |
download | ydb-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.h | 2 |
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()); } |