aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-08-08 00:09:13 +0300
committerswarmer <swarmer@yandex-team.com>2024-08-08 00:27:34 +0300
commit464addc69515ab37bf1f3ecb46d7b802c259f4eb (patch)
tree0f699535d7a38980f1e6044fa24df874161906f6
parent7155674ad6031a1f17aaea06cbd8f203873dfd9c (diff)
downloadydb-464addc69515ab37bf1f3ecb46d7b802c259f4eb.tar.gz
check the lifetime bound of the MinMax algo
fdef98a22a11016e54d3e0eadbebddce5f68e83d
-rw-r--r--util/generic/algorithm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/generic/algorithm.h b/util/generic/algorithm.h
index 70efc50609..bf32a19643 100644
--- a/util/generic/algorithm.h
+++ b/util/generic/algorithm.h
@@ -780,7 +780,7 @@ constexpr TO CopyIf(TI begin, TI end, TO to, P pred) {
}
template <class T>
-constexpr std::pair<const T&, const T&> MinMax(const T& first, const T& second) {
+constexpr std::pair<const T&, const T&> MinMax(const T& first Y_LIFETIME_BOUND, const T& second Y_LIFETIME_BOUND) {
return std::minmax(first, second);
}