aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-07-22 12:15:57 +0300
committerbabenko <babenko@yandex-team.com>2024-07-22 12:28:39 +0300
commit942d2ca60b764e6bd7dff28a3ef04fefacbd576d (patch)
tree4f72c54295979eddd5ea4cb6b5845fe52326f1f1 /library/cpp
parentb28ebe1bef50f23bcb3bffac9964e77f13a0058d (diff)
downloadydb-942d2ca60b764e6bd7dff28a3ef04fefacbd576d.tar.gz
Fix TRange-from-std::vector ctor
2b4749cade5242ec10775c7819c790735f7484b7
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/yt/memory/range.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/cpp/yt/memory/range.h b/library/cpp/yt/memory/range.h
index 10f2ea43ec..7a9c0bcd79 100644
--- a/library/cpp/yt/memory/range.h
+++ b/library/cpp/yt/memory/range.h
@@ -87,7 +87,7 @@ public:
//! Constructs a TRange from an std::vector.
template <class A>
TRange(const std::vector<T, A>& elements)
- : Data_(elements.empty() ? nullptr : elements.data())
+ : Data_(elements.data())
, Length_(elements.size())
{ }