mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 15:04:12 +00:00
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:
@@ -466,7 +466,7 @@ class span FLATBUFFERS_FINAL_CLASS {
|
|||||||
private:
|
private:
|
||||||
// This is a naive implementation with 'count_' member even if (Extent != dynamic_extent).
|
// This is a naive implementation with 'count_' member even if (Extent != dynamic_extent).
|
||||||
pointer const data_;
|
pointer const data_;
|
||||||
const size_type count_;
|
size_type count_;
|
||||||
};
|
};
|
||||||
#endif // defined(FLATBUFFERS_USE_STD_SPAN)
|
#endif // defined(FLATBUFFERS_USE_STD_SPAN)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user