From 60baa581a9f9806dba362a549dd7f97927c1b29c Mon Sep 17 00:00:00 2001 From: Ivo Maceira Date: Thu, 11 Sep 2025 16:40:57 +0200 Subject: [PATCH] Delete copy assignment operator for span (#3499) count_ is declared as const so assignment to it raised error --- src/core/lib/flatbuffers/stl_emulation.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/lib/flatbuffers/stl_emulation.h b/src/core/lib/flatbuffers/stl_emulation.h index c379353389..d26f485b65 100644 --- a/src/core/lib/flatbuffers/stl_emulation.h +++ b/src/core/lib/flatbuffers/stl_emulation.h @@ -544,10 +544,7 @@ class span FLATBUFFERS_FINAL_CLASS { : data_(other.data_), count_(other.count_) {} FLATBUFFERS_CONSTEXPR_CPP14 span &operator=(const span &other) - FLATBUFFERS_NOEXCEPT { - data_ = other.data_; - count_ = other.count_; - } + FLATBUFFERS_NOEXCEPT = delete; // Limited implementation of // `template constexpr std::span(It first, size_type count);`.