mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-29 22:52:03 +00:00
* [C++] Fix compiler error from deleted assignment operator (#6036) The assignment operator of the `buf_` member is deleted, we cannot call it from the assignment operator of the `TableKeyComparator` struct. => Also delete the assignment operator of the `TableKeyComparator` struct (already private anyhow). * [C++] Fix compiler error from deleted assignment operator (#6036) - fix extraneous semicolon The assignment operator of the `buf_` member is deleted, we cannot call it from the assignment operator of the `TableKeyComparator` struct. => Also delete the assignment operator of the `TableKeyComparator` struct (already private anyhow).
This commit is contained in:
@@ -1879,10 +1879,7 @@ class FlatBufferBuilder {
|
|||||||
vector_downward &buf_;
|
vector_downward &buf_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TableKeyComparator &operator=(const TableKeyComparator &other) {
|
FLATBUFFERS_DELETE_FUNC(TableKeyComparator &operator=(const TableKeyComparator &other))
|
||||||
buf_ = other.buf_;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user