[C++] stl_emulation span::count_ is not const anymore (#7226) (#7227)

In C++ we cannot have both assignment operator and const member. Since
span::operator= is defined, span::count_ constness must be removed.
This commit is contained in:
avaliente-bc
2022-04-06 21:27:37 +02:00
committed by GitHub
parent f083b33f2a
commit 20aad0c41e

View File

@@ -466,7 +466,7 @@ class span FLATBUFFERS_FINAL_CLASS {
private:
// This is a naive implementation with 'count_' member even if (Extent != dynamic_extent).
pointer const data_;
const size_type count_;
size_type count_;
};
#endif // defined(FLATBUFFERS_USE_STD_SPAN)