aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-03-20 15:57:03 +0300
committerlevlam <levlam@telegram.org>2025-03-20 15:57:03 +0300
commit9de10cee4f0a6963a272480d658ca87319093662 (patch)
treec582d250c61f057d1627c29f8e308d138f030e5b /tdutils
parent93cc28b5d770007ec8b0879ee93020757738aa9e (diff)
Fix SpanImpl::operator=.
Diffstat (limited to 'tdutils')
-rw-r--r--tdutils/td/utils/Span.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tdutils/td/utils/Span.h b/tdutils/td/utils/Span.h
index 3686885b1..f7102140c 100644
--- a/tdutils/td/utils/Span.h
+++ b/tdutils/td/utils/Span.h
@@ -51,6 +51,7 @@ class SpanImpl {
SpanImpl &operator=(const SpanImpl<T, OtherInnerT> &other) {
SpanImpl copy{other};
*this = copy;
+ return *this;
}
template <class OtherInnerT>
bool operator==(const SpanImpl<T, OtherInnerT> &other) const {